aboutsummaryrefslogtreecommitdiffhomepage
path: root/screen.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-01-04 22:32:40 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-01-04 22:32:40 -0800
commit1c831447739c560416d5bd466a41649122166a09 (patch)
tree26b8225c486f893cf9970cdcc0584cb024295389 /screen.cpp
parentedb973fadc8d359aa212999d8f447b0de9589789 (diff)
Reset the color before we clear to eol
Diffstat (limited to 'screen.cpp')
-rw-r--r--screen.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/screen.cpp b/screen.cpp
index d805b7e6..be2f0203 100644
--- a/screen.cpp
+++ b/screen.cpp
@@ -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);