mirror of
https://github.com/jarun/nnn.git
synced 2025-01-15 13:26:37 +00:00
Clear selection if all links are generated
This commit is contained in:
parent
824e7a2c18
commit
38d7090e64
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue