mirror of
https://github.com/nushell/reedline.git
synced 2024-09-11 15:55:50 +03:00
show right prompt on indicator line in last line mode (#501)
This commit is contained in:
parent
30713abe87
commit
39e6bc8eb3
@ -196,8 +196,7 @@ impl Painter {
|
|||||||
|
|
||||||
let mut row = self.prompt_start_row;
|
let mut row = self.prompt_start_row;
|
||||||
if lines.right_prompt_on_last_line {
|
if lines.right_prompt_on_last_line {
|
||||||
let required_lines = lines.required_lines(screen_width, None);
|
row += lines.prompt_lines_with_wrap(screen_width);
|
||||||
row += required_lines.saturating_sub(1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if input_width <= start_position {
|
if input_width <= start_position {
|
||||||
|
Loading…
Reference in New Issue
Block a user