summaryrefslogtreecommitdiffstats
path: root/commands.c
diff options
context:
space:
mode:
authorBert Münnich <ber.t@posteo.de>2013-11-14 14:37:08 +0100
committerBert Münnich <ber.t@posteo.de>2013-11-14 14:37:08 +0100
commit38bc23405d619a7ba430731f141157104f2267f9 (patch)
tree27d8aa6e53d1b5d53d1f536d919e5ee621fc9376 /commands.c
parent450c1ed9b54de4d374bff80735c874bb6f7a4a0f (diff)
downloadnsxiv-38bc23405d619a7ba430731f141157104f2267f9.tar.zst
Highlight edges of marked images in thumbnail mode
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/commands.c b/commands.c
index ff95f36..97b5405 100644
--- a/commands.c
+++ b/commands.c
@@ -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;
}