diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2018-11-30 20:52:07 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2018-11-30 20:52:07 +0530 |
commit | 33b22b8560251d4aa19d81f686d40fab603ea1f7 (patch) | |
tree | 9ffff6b7cd0223d995d2c8b3ecb353f496e02c60 | |
parent | 4ef2230fca55015b4848ad19979223e50014e080 (diff) | |
download | nnn-33b22b8560251d4aa19d81f686d40fab603ea1f7.tar.gz |
Fix #155: do not discard seleciton on Enter
-rw-r--r-- | src/nnn.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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; |