Clear selection if all links are generated

This commit is contained in:
Arun Prakash Jana 2022-12-12 16:15:06 +05:30
parent 824e7a2c18
commit 38d7090e64
No known key found for this signature in database
GPG Key ID: A75979F35C080412
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}