mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 14:20:12 +08:00
screen: Also move cursor after printing the prompt
This helps with width issues when no right prompt is used.
This commit is contained in:
parent
0660ea5be7
commit
25595a94c7
@ -900,6 +900,10 @@ static void s_update(screen_t *scr, const wcstring &left_prompt, const wcstring
|
||||
}
|
||||
}
|
||||
|
||||
// Also move the cursor to the beginning of the line here,
|
||||
// in case we're wrong about the width anywhere.
|
||||
s_move(scr, 0, 0);
|
||||
|
||||
// Clear remaining lines (if any) if we haven't cleared the screen.
|
||||
if (!has_cleared_screen && need_clear_screen && clr_eol) {
|
||||
set_color(highlight_spec_t{});
|
||||
|
Loading…
x
Reference in New Issue
Block a user