From fd0a2f06ae3472b5b5d22b95562b576eeb9a99e7 Mon Sep 17 00:00:00 2001 From: Keith Winstein Date: Sat, 5 Feb 2011 18:34:12 -0500 Subject: [PATCH] Fix bug that explicit renditions introduced to back color erase --- terminalframebuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminalframebuffer.cpp b/terminalframebuffer.cpp index 286b6fe..c5240d8 100644 --- a/terminalframebuffer.cpp +++ b/terminalframebuffer.cpp @@ -350,7 +350,7 @@ void Framebuffer::back_color_erase( void ) for ( int col = 0; col < ds.get_width(); col++ ) { Cell *cell = get_cell( row, col ); if ( cell->renditions.background_color == -1 ) { - cell->renditions.background_color = bg_color; + cell->renditions.background_color = bg_color == -1 ? 0 : bg_color; } } }