mirror of
https://github.com/jarun/nnn.git
synced 2024-11-16 08:03:16 +00:00
Fix #155: do not discard seleciton on Enter
This commit is contained in:
parent
4ef2230fca
commit
33b22b8560
|
@ -2653,10 +2653,8 @@ nochange:
|
||||||
/* If opened as vim plugin and Enter/^M pressed, pick */
|
/* If opened as vim plugin and Enter/^M pressed, pick */
|
||||||
if (cfg.picker && sel == SEL_GOIN) {
|
if (cfg.picker && sel == SEL_GOIN) {
|
||||||
r = mkpath(path, dents[cur].name, newpath, PATH_MAX);
|
r = mkpath(path, dents[cur].name, newpath, PATH_MAX);
|
||||||
/* NOTE: This overrides any previous selection */
|
|
||||||
copybufpos = 0;
|
|
||||||
appendfpath(newpath, r);
|
appendfpath(newpath, r);
|
||||||
writecp(newpath, r - 1);
|
writecp(pcopybuf, copybufpos - 1);
|
||||||
|
|
||||||
dentfree(dents);
|
dentfree(dents);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue