ref: b08fefc3393413040f8fe2c0f91e931df8dfde38
parent: 49eb490914a8cda35cf1320981ebf7beaea8d79a
author: phil9 <[email protected]>
date: Sun Feb 18 09:35:54 EST 2024
print absolute position in addition to percentage
--- a/vexed.c
+++ b/vexed.c
@@ -458,7 +458,7 @@
p = string(screen, Pt(statusr.min.x + Padding, statusr.min.y), cols[HEX], ZP, font, filename);
if(modified)
string(screen, p, cols[SCROLL], ZP, font, " (modified)");
- snprint(b, sizeof b, "%d%%", (int)((100.0 * sel) / buf.count + 0.5));
+ snprint(b, sizeof b, "%d/%zld (%d%%)", sel+1, buf.count, (int)((100.0 * sel) / buf.count + 0.5));
x = statusr.max.x - stringwidth(font, b) - Padding;
string(screen, Pt(x, statusr.min.y), cols[HEX], ZP, font, b);
}