diff options
author | KlzXS <azszwymmvqdi@yahoo.com> | 2019-12-10 21:04:17 +0100 |
---|---|---|
committer | Mischievous Meerkat <engineerarun@gmail.com> | 2019-12-11 01:34:16 +0530 |
commit | 8b7a74a451f30ce36e4acddd32ffab0516c1c298 (patch) | |
tree | 1949174ecfb8b2c21c362e7f9c2bff447870057e /src | |
parent | 2e407d13258ebec3bf02c61365c9132297767ab8 (diff) | |
download | nnn-8b7a74a451f30ce36e4acddd32ffab0516c1c298.tar.gz |
Fix not properly checking if file is selected (#401)
Diffstat (limited to 'src')
-rw-r--r-- | src/nnn.c | 2 |
1 files changed, 1 insertions, 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); |