mirror of
https://github.com/jarun/nnn.git
synced 2025-03-12 17:54:04 +00:00
Fix not properly checking if file is selected (#401)
This commit is contained in:
parent
2e407d1325
commit
8b7a74a451
1 changed files with 1 additions and 1 deletions
|
@ -4863,7 +4863,7 @@ nochange:
|
|||
|
||||
/* Toggle selection status */
|
||||
dents[cur].flags ^= FILE_SELECTED;
|
||||
dents[cur].flags ? ++nselected : --nselected;
|
||||
(dents[cur].flags & FILE_SELECTED) ? ++nselected : --nselected;
|
||||
|
||||
if (!nselected) {
|
||||
writesel(NULL, 0);
|
||||
|
|
Loading…
Add table
Reference in a new issue