show right prompt on indicator line in last line mode (#501)

This commit is contained in:
nibon7 2022-10-23 21:57:24 +08:00 committed by GitHub
parent 30713abe87
commit 39e6bc8eb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -196,8 +196,7 @@ impl Painter {
let mut row = self.prompt_start_row;
if lines.right_prompt_on_last_line {
let required_lines = lines.required_lines(screen_width, None);
row += required_lines.saturating_sub(1);
row += lines.prompt_lines_with_wrap(screen_width);
}
if input_width <= start_position {