]> Sergey Matveev's repositories - nnn.git/commitdiff
Adapt picker mode to new selection changes
authorArun Prakash Jana <engineerarun@gmail.com>
Sat, 30 Nov 2019 14:51:48 +0000 (20:21 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sat, 30 Nov 2019 15:06:04 +0000 (20:36 +0530)
src/nnn.c

index 7aa464b9fa6b3f121dd6377e907104c0954411c3..7d5bd12a564cffdc5caf924b427d180781db7422 100644 (file)
--- 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;
                                }