nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 38d7090e646de3afbcfd8c1dc233f45425d37f0c
parent 824e7a2c1863fd59b8bd5916ba67f87b006fec1b
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Mon, 12 Dec 2022 16:15:06 +0530

Clear selection if all links are generated

Diffstat:
Msrc/nnn.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/nnn.c b/src/nnn.c @@ -3724,7 +3724,6 @@ static int xlink(char *prefix, char *path, char *curfname, char *buf, int type) clearselection(); return 1; /* One link created */ } - return 0; } @@ -3743,7 +3742,8 @@ static int xlink(char *prefix, char *path, char *curfname, char *buf, int type) psel += len + 1; } - clearselection(); + if (count == nselected) /* Clear selection if all links are generated */ + clearselection(); return count; }