diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2013-01-04 22:32:40 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2013-01-04 22:32:40 -0800 |
commit | 1c831447739c560416d5bd466a41649122166a09 (patch) | |
tree | 26b8225c486f893cf9970cdcc0584cb024295389 /screen.cpp | |
parent | edb973fadc8d359aa212999d8f447b0de9589789 (diff) |
Reset the color before we clear to eol
Diffstat (limited to 'screen.cpp')
-rw-r--r-- | screen.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -973,6 +973,7 @@ static void s_update(screen_t *scr, const wchar_t *left_prompt, const wchar_t *r } if (clear_remainder) { + s_set_color(scr, &output, 0xffffffff); s_move(scr, &output, current_width, (int)i); s_write_mbs(&output, clr_eol); } @@ -998,8 +999,9 @@ static void s_update(screen_t *scr, const wchar_t *left_prompt, const wchar_t *r /* Clear remaining lines (if any) if we haven't cleared the screen. */ - if (! has_cleared_screen) + if (! has_cleared_screen && scr->desired.line_count() < lines_with_stuff) { + s_set_color(scr, &output, 0xffffffff); for (size_t i=scr->desired.line_count(); i < lines_with_stuff; i++) { s_move(scr, &output, 0, (int)i); |