aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar KlzXS <azszwymmvqdi@yahoo.com>2019-12-10 21:04:17 +0100
committerGravatar Mischievous Meerkat <engineerarun@gmail.com>2019-12-11 01:34:16 +0530
commit8b7a74a451f30ce36e4acddd32ffab0516c1c298 (patch)
tree1949174ecfb8b2c21c362e7f9c2bff447870057e /src
parent2e407d13258ebec3bf02c61365c9132297767ab8 (diff)
downloadnnn-8b7a74a451f30ce36e4acddd32ffab0516c1c298.tar.gz
Fix not properly checking if file is selected (#401)
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);