From: Arun Prakash Jana Date: Sun, 17 Nov 2019 14:50:21 +0000 (+0530) Subject: Fix line count when editing selection X-Git-Tag: v2.8~70 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=4f787fd59e7b69e771f53478477727e38a434a43;p=nnn.git Fix line count when editing selection --- 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;