From 39e6bc8eb3324b560479d097c7ab42d1ba45ec90 Mon Sep 17 00:00:00 2001 From: nibon7 Date: Sun, 23 Oct 2022 21:57:24 +0800 Subject: [PATCH] show right prompt on indicator line in last line mode (#501) --- src/painting/painter.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/painting/painter.rs b/src/painting/painter.rs index 4322b27..bace91d 100644 --- a/src/painting/painter.rs +++ b/src/painting/painter.rs @@ -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 {