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

View file

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