Browse Source

Fix #155: do not discard seleciton on Enter

master
Arun Prakash Jana 5 years ago
parent
commit
33b22b8560
No known key found for this signature in database GPG Key ID: A75979F35C080412
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      src/nnn.c

+ 1
- 3
src/nnn.c View File

@@ -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;


Loading…
Cancel
Save