src/nnn.c | 3 +++ diff --git a/src/nnn.c b/src/nnn.c index b50f8d40ffe5d0eeee4f0e95137d063330aff610..ba96805a854b82af446c4bcd073982b5b2b09e25 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -1007,6 +1007,9 @@ pselbuf[count] = '\0'; } } + /* Add a line for the last file */ + ++lines; + if (lines > nselected) { DPRINTF_S("files added to selection"); goto emptyedit;