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

View file

@ -3343,6 +3343,13 @@ nochange:
break; break;
if (sel == SEL_CDQUIT) { if (sel == SEL_CDQUIT) {
/* In vim picker mode, clear selection and exit */
if (cfg.picker) {
copybufpos = 0;
dentfree(dents);
return;
}
tmp = getenv("NNN_TMPFILE"); tmp = getenv("NNN_TMPFILE");
if (!tmp) { if (!tmp) {
printmsg("set NNN_TMPFILE"); printmsg("set NNN_TMPFILE");