mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-05 00:01:15 -03: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:
@@ -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{});
|
||||
|
||||
Reference in New Issue
Block a user