From c618fb3ac16184105166e6840e65442482fc98f5 Mon Sep 17 00:00:00 2001 From: Lisa Milne Date: Thu, 14 Dec 2023 15:02:20 +1000 Subject: [PATCH] fix less chopping off the top line --- clite/commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clite/commands.js b/clite/commands.js index 8eccbf8..7802dcb 100644 --- a/clite/commands.js +++ b/clite/commands.js @@ -398,7 +398,7 @@ Options: function showAt(line) { var start = line; - var end = line+rows; + var end = line+rows-1; if (end > lines.length) end = lines.length; curses.clear();