mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Fix not properly checking if file is selected (#401)
This commit is contained in:
parent
2e407d1325
commit
8b7a74a451
|
@ -4863,7 +4863,7 @@ nochange:
|
||||||
|
|
||||||
/* Toggle selection status */
|
/* Toggle selection status */
|
||||||
dents[cur].flags ^= FILE_SELECTED;
|
dents[cur].flags ^= FILE_SELECTED;
|
||||||
dents[cur].flags ? ++nselected : --nselected;
|
(dents[cur].flags & FILE_SELECTED) ? ++nselected : --nselected;
|
||||||
|
|
||||||
if (!nselected) {
|
if (!nselected) {
|
||||||
writesel(NULL, 0);
|
writesel(NULL, 0);
|
||||||
|
|
Loading…
Reference in a new issue