Browse Source

End selmode and update selection on dir changes

master
Arun Prakash Jana 5 years ago
parent
commit
e723666256
No known key found for this signature in database GPG Key ID: A75979F35C080412
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      src/nnn.c

+ 6
- 4
src/nnn.c 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();


Loading…
Cancel
Save