commit 4f787fd59e7b69e771f53478477727e38a434a43
parent 2cbd76abf6ecadec68fc8c61e3e21c4f2c3d17da
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date: Sun, 17 Nov 2019 20:20:21 +0530
Fix line count when editing selection
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git 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;