commit 5dc1d81733e4aae7eb451939acaa195373d1e275
parent 4260a7bb84ed9ba515bdaad6618b28095dba01b3
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date: Fri, 13 Mar 2026 20:13:59 +0530
Fix #2115: Ensure off-screen entries are reconciled with selbuf before inversion
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/nnn.c b/src/nnn.c
@@ -1866,8 +1866,8 @@ static void invertselbuf(const int pathlen)
for (i = 0; i < ndents; ++i) {
dentp = &pdents[i];
- if (!(dentp->flags & FILE_SCANNED))
- dentp->flags |= FILE_SCANNED;
+ /* Ensure off-screen entries are reconciled with selbuf before inversion. */
+ findmarkentry(pathlen, dentp);
if (dentp->flags & FILE_SELECTED) {
dentp->flags ^= FILE_SELECTED; /* Clear selection status */