From 153300f6d1050e818682c05e847c7f8b05d13cbb Mon Sep 17 00:00:00 2001 From: kerty Date: Tue, 14 Jan 2025 09:36:59 +0300 Subject: [PATCH] Fix incorrect line count calculation --- src/screen.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screen.rs b/src/screen.rs index c096f6e71..a9b750b6f 100644 --- a/src/screen.rs +++ b/src/screen.rs @@ -418,7 +418,7 @@ impl Screen { i += 1; }; - let full_line_count = self.desired.cursor.y + 1; + let full_line_count = self.desired.cursor.y + calc_prompt_lines(&layout.left_prompt); let pager_available_height = std::cmp::max( 1, curr_termsize