From 4f787fd59e7b69e771f53478477727e38a434a43 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sun, 17 Nov 2019 20:20:21 +0530 Subject: [PATCH] Fix line count when editing selection --- src/nnn.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/nnn.c b/src/nnn.c index b50f8d40..ba96805a 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;