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