mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 20:01:27 +00:00
Use ^G to discard seleciton and exit in vim plugin mode
This commit is contained in:
parent
afd8b64d56
commit
d065666205
|
@ -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");
|
||||||
|
|
Loading…
Reference in a new issue