End selmode and update selection on dir changes

This commit is contained in:
Arun Prakash Jana 2019-12-12 21:37:39 +05:30
parent fcba62d296
commit e723666256
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -4741,7 +4741,6 @@ nochange:
cfg.apparentsz = 0;
cfg.blkorder = 0;
cfg.extnorder = 0;
cfg.selmode = 0;
break;
case SEL_ASIZE:
cfg.apparentsz ^= 1;
@ -4767,7 +4766,6 @@ nochange:
cfg.mtimeorder = 0;
cfg.sizeorder = 0;
cfg.extnorder = 0;
cfg.selmode = 0;
break;
case SEL_EXTN:
cfg.extnorder ^= 1;
@ -4775,7 +4773,6 @@ nochange:
cfg.mtimeorder = 0;
cfg.apparentsz = 0;
cfg.blkorder = 0;
cfg.selmode = 0;
break;
default: /* SEL_MTIME */
cfg.mtimeorder ^= 1;
@ -4783,10 +4780,15 @@ nochange:
cfg.apparentsz = 0;
cfg.blkorder = 0;
cfg.extnorder = 0;
cfg.selmode = 0;
break;
}
if (cfg.selmode) {
if (nselected)
updateselbuf(path, newpath);
cfg.selmode = 0;
}
/* Save current */
if (ndents)
copycurname();