]> Sergey Matveev's repositories - nnn.git/commitdiff
Fix line count when editing selection
authorArun Prakash Jana <engineerarun@gmail.com>
Sun, 17 Nov 2019 14:50:21 +0000 (20:20 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sun, 17 Nov 2019 14:56:01 +0000 (20:26 +0530)
src/nnn.c

index b50f8d40ffe5d0eeee4f0e95137d063330aff610..ba96805a854b82af446c4bcd073982b5b2b09e25 100644 (file)
--- 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;