diff --git a/src/screen.cpp b/src/screen.cpp index 7d43ec2d0..0a0de62a5 100644 --- a/src/screen.cpp +++ b/src/screen.cpp @@ -739,10 +739,10 @@ static void s_update(screen_t *scr, const wcstring &left_prompt, const wcstring s_move(scr, 0, 0); size_t start = 0; for (const size_t line_break : left_prompt_layout.line_breaks) { - s_write_str(scr, left_prompt.substr(start, line_break - start).c_str()); if (clr_eol) { s_write_mbs(scr, clr_eol); } + s_write_str(scr, left_prompt.substr(start, line_break - start).c_str()); start = line_break; } s_write_str(scr, left_prompt.c_str() + start);