mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-14 04:52:46 +08:00
Fix incorrect line count calculation
This commit is contained in:
parent
2508cc9de6
commit
153300f6d1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user