mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 20:01:27 +00:00
Clear picker file on cancel
This commit is contained in:
parent
04b0a38f68
commit
9876948a46
|
@ -3394,7 +3394,12 @@ nochange:
|
||||||
if (sel == SEL_QUITCD) {
|
if (sel == SEL_QUITCD) {
|
||||||
/* In vim picker mode, clear selection and exit */
|
/* In vim picker mode, clear selection and exit */
|
||||||
if (cfg.picker) {
|
if (cfg.picker) {
|
||||||
copybufpos = 0;
|
if (copybufpos) {
|
||||||
|
if (cfg.pickraw) /* Reset for for raw pick */
|
||||||
|
copybufpos = 0;
|
||||||
|
else /* Clear the picker file */
|
||||||
|
writecp(NULL, 0);
|
||||||
|
}
|
||||||
dentfree(dents);
|
dentfree(dents);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue