screen: Also move cursor after printing the prompt

This helps with width issues when no right prompt is used.
This commit is contained in:
Fabian Homborg 2021-05-17 23:17:13 +02:00
parent 0660ea5be7
commit 25595a94c7

View File

@ -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{});