Use ^G to discard seleciton and exit in vim plugin mode

This commit is contained in:
Arun Prakash Jana 2018-11-25 02:21:22 +05:30
parent afd8b64d56
commit d065666205
No known key found for this signature in database
GPG Key ID: A75979F35C080412
1 changed files with 7 additions and 0 deletions

View File

@ -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");