aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-11-30 20:21:48 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-11-30 20:36:04 +0530
commit130cea3598de0158bdf3cf2428e269e04880594b (patch)
tree8e986a475ea37ebcbdc75849937e8ceac7bfb8c4 /src
parent19a914cd0c1130cbea6a1cf0e1488ca805d64be0 (diff)
downloadnnn-130cea3598de0158bdf3cf2428e269e04880594b.tar.gz
Adapt picker mode to new selection changes
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 7aa464b..7d5bd12 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -4389,8 +4389,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);
- appendfpath(newpath, r);
+ dents[cur].flags |= FILE_SELECTED;
+ updateselbuf(path, newpath);
writesel(pselbuf, selbufpos - 1);
return;
}