From: Arun Prakash Jana Date: Sat, 24 Nov 2018 20:51:22 +0000 (+0530) Subject: Use ^G to discard seleciton and exit in vim plugin mode X-Git-Tag: v2.2~121 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=d065666205f96cf66c2de6d7b307e68ed97bd774;p=nnn.git Use ^G to discard seleciton and exit in vim plugin mode --- diff --git a/src/nnn.c b/src/nnn.c index a20dfe79..f763a5ef 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");