Also show `*' for marked images - pkgsrc-localpatches - leot's pkgsrc LOCALPATCHES
(HTM) hg clone https://bitbucket.org/iamleot/pkgsrc-localpatches
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) changeset a7fed352255cf2c4d82b96e623a631190c95361c
(DIR) parent d23f85ce2e8ffa34e648badb3d2a1e4129137de4
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Tue, 16 Oct 2018 12:40:23
Also show `*' for marked images
Diffstat:
graphics/sxiv/patch-main.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff -r d23f85ce2e8f -r a7fed352255c graphics/sxiv/patch-main.c
--- a/graphics/sxiv/patch-main.c Mon Oct 15 22:56:31 2018 +0200
+++ b/graphics/sxiv/patch-main.c Tue Oct 16 12:40:23 2018 +0200
@@ -2,15 +2,17 @@
Put more information in the window title, similar to the ones in the bar.
---- main.c.orig 2015-12-20 12:21:25.000000000 +0000
+--- main.c.orig 2017-10-27 15:25:56.000000000 +0000
+++ main.c
-@@ -344,7 +344,8 @@ void update_info(void)
+@@ -347,7 +347,10 @@ void update_info(void)
if (mode == MODE_THUMB) {
win_set_title(&win, "sxiv");
} else {
- snprintf(title, sizeof(title), "sxiv - %s", files[fileidx].name);
-+ snprintf(title, sizeof(title), "%s - %d/%d (%d%%)",
-+ files[fileidx].name, fileidx + 1, filecnt, (int) (img.zoom * 100.0));
++ snprintf(title, sizeof(title), "%s - %d/%d (%d%%) %s",
++ files[fileidx].name, fileidx + 1, filecnt,
++ (int) (img.zoom * 100.0),
++ files[fileidx].flags & FF_MARK ? "*" : "");
win_set_title(&win, title);
}