]> Sergey Matveev's repositories - nnn.git/commitdiff
End multi selection mode before link
authorArun Prakash Jana <engineerarun@gmail.com>
Mon, 30 Sep 2019 02:11:34 +0000 (07:41 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Mon, 30 Sep 2019 02:11:34 +0000 (07:41 +0530)
src/nnn.c

index c9d07b3c69ba61a2b2b1f47a1e4d940155652f57..4a37dcb9ecab463728027e379277d7387b6652ff 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -2050,6 +2050,8 @@ static int xlink(char *suffix, char *path, char *buf, int *presel, int type)
                return -1;
        }
 
+       endselection();
+
        if (type == 's') /* symbolic link */
                link_fn = &symlink;
        else /* hard link */