summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorBert Münnich <ber.t@posteo.de>2018-06-09 14:06:16 +0200
committerBert Münnich <ber.t@posteo.de>2018-06-09 14:07:13 +0200
commit1de5f06f83408243211ba7872a15324fec7e3e01 (patch)
treecec24e61f671883b12ddfb44f4e60478c149f311 /main.c
parent5367b75867ccee99dcc5730bf04e3f3b10b4138d (diff)
downloadnsxiv-1de5f06f83408243211ba7872a15324fec7e3e01.tar.zst
Set global markidx whenever a single img is (un)marked
This also sets *markidx* when using the right mouse button in thumbnail mode.
Diffstat (limited to 'main.c')
-rw-r--r--main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.c b/main.c
index c6da126..1485246 100644
--- a/main.c
+++ b/main.c
@@ -323,6 +323,7 @@ void load_image(int new)
bool mark_image(int n, bool on)
{
+ markidx = n;
if (!!(files[n].flags & FF_MARK) != on) {
files[n].flags ^= FF_MARK;
markcnt += on ? 1 : -1;