aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nnn.c b/src/nnn.c
index a20dfe7..f763a5e 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -3343,6 +3343,13 @@ nochange:
break;
if (sel == SEL_CDQUIT) {
+ /* In vim picker mode, clear selection and exit */
+ if (cfg.picker) {
+ copybufpos = 0;
+ dentfree(dents);
+ return;
+ }
+
tmp = getenv("NNN_TMPFILE");
if (!tmp) {
printmsg("set NNN_TMPFILE");