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