nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 33b22b8560251d4aa19d81f686d40fab603ea1f7
parent 4ef2230fca55015b4848ad19979223e50014e080
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Fri, 30 Nov 2018 20:52:07 +0530

Fix #155: do not discard seleciton on Enter

Diffstat:
Msrc/nnn.c | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/nnn.c b/src/nnn.c @@ -2653,10 +2653,8 @@ nochange: /* If opened as vim plugin and Enter/^M pressed, pick */ if (cfg.picker && sel == SEL_GOIN) { r = mkpath(path, dents[cur].name, newpath, PATH_MAX); - /* NOTE: This overrides any previous selection */ - copybufpos = 0; appendfpath(newpath, r); - writecp(newpath, r - 1); + writecp(pcopybuf, copybufpos - 1); dentfree(dents); return;