Browse Source

checkpatch fix: refactor cd on quit

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

+ 4
- 6
src/nnn.c View File

@@ -3952,12 +3952,10 @@ nochange:
if (sel == SEL_QUITCD) {
/* In vim picker mode, clear selection and exit */
if (cfg.picker) {
if (copybufpos) {
if (cfg.pickraw) /* Reset for for raw pick */
copybufpos = 0;
else /* Clear the picker file */
writecp(NULL, 0);
}
/* Picker mode: reset buffer or clear file */
if (copybufpos)
cfg.pickraw ? copybufpos = 0 : writecp(NULL, 0);

dentfree(dents);
return;
}


Loading…
Cancel
Save