diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2018-11-25 02:21:22 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2018-11-25 02:21:22 +0530 |
commit | d065666205f96cf66c2de6d7b307e68ed97bd774 (patch) | |
tree | 797802a7110c191bfbec37404091b3e6680dee65 /src | |
parent | afd8b64d563efa4b228694616614090a3b4bedba (diff) | |
download | nnn-d065666205f96cf66c2de6d7b307e68ed97bd774.tar.gz |
Use ^G to discard seleciton and exit in vim plugin mode
Diffstat (limited to 'src')
-rw-r--r-- | src/nnn.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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"); |