Set global markidx whenever a single img is (un)marked

This also sets *markidx* when using the right mouse button in thumbnail mode.
This commit is contained in:
Bert Münnich
2018-06-09 14:06:16 +02:00
parent 5367b75867
commit 1de5f06f83
2 changed files with 4 additions and 4 deletions

1
main.c
View File

@ -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;