mirror of
https://github.com/jarun/nnn.git
synced 2025-01-15 21:36:42 +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();
|
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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue