Fix not properly checking if file is selected (#401)

This commit is contained in:
KlzXS 2019-12-10 21:04:17 +01:00 committed by Mischievous Meerkat
parent 2e407d1325
commit 8b7a74a451

View file

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