Fix incorrect line count calculation

This commit is contained in:
kerty 2025-01-14 09:36:59 +03:00 committed by Johannes Altmanninger
parent 2508cc9de6
commit 153300f6d1

View File

@ -418,7 +418,7 @@ impl Screen {
i += 1; 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( let pager_available_height = std::cmp::max(
1, 1,
curr_termsize curr_termsize