aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/nnn.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nnn.c b/src/nnn.c
index b50f8d4..ba96805 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -1007,6 +1007,9 @@ static bool editselection(void)
}
}
+ /* Add a line for the last file */
+ ++lines;
+
if (lines > nselected) {
DPRINTF_S("files added to selection");
goto emptyedit;