diff options
author | Bert Münnich <ber.t@posteo.de> | 2013-11-14 14:37:08 +0100 |
---|---|---|
committer | Bert Münnich <ber.t@posteo.de> | 2013-11-14 14:37:08 +0100 |
commit | 38bc23405d619a7ba430731f141157104f2267f9 (patch) | |
tree | 27d8aa6e53d1b5d53d1f536d919e5ee621fc9376 /commands.c | |
parent | 450c1ed9b54de4d374bff80735c874bb6f7a4a0f (diff) | |
download | nsxiv-38bc23405d619a7ba430731f141157104f2267f9.tar.zst |
Highlight edges of marked images in thumbnail mode
Diffstat (limited to 'commands.c')
-rw-r--r-- | commands.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -48,7 +48,6 @@ extern win_t win; extern fileinfo_t *files; extern int filecnt, fileidx; -extern int markcnt; extern int alternate; extern int prefix; @@ -61,7 +60,7 @@ bool it_quit(arg_t a) { unsigned int i; - if (options->to_stdout && markcnt > 0) { + if (options->to_stdout) { for (i = 0; i < filecnt; i++) { if (files[i].marked) printf("%s\n", files[i].name); @@ -247,7 +246,8 @@ bool it_toggle_image_mark(arg_t a) int sel = mode == MODE_IMAGE ? fileidx : tns.sel; files[sel].marked = !files[sel].marked; - markcnt += files[sel].marked ? 1 : -1; + if (mode == MODE_THUMB) + tns_mark(&tns, sel, files[sel].marked); return true; } |