aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 94c5fe3..a1fcda3 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -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);