projects
/
nnn.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
afd8b64
)
Use ^G to discard seleciton and exit in vim plugin mode
author
Arun Prakash Jana <engineerarun@gmail.com>
Sat, 24 Nov 2018 20:51:22 +0000 (
02:21
+0530)
committer
Arun Prakash Jana <engineerarun@gmail.com>
Sat, 24 Nov 2018 20:51:22 +0000 (
02:21
+0530)
src/nnn.c
patch
|
blob
|
history
diff --git
a/src/nnn.c
b/src/nnn.c
index a20dfe797ea2d143444b4aeb22abf86f888fc807..f763a5ef5530096e02256cb2d3a6645e693e3b41 100644
(file)
--- 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");