Fix bug sometimes causing missing (or spurious) wraparound copy-and-paste

This commit is contained in:
Keith Winstein
2012-04-02 19:04:26 -04:00
parent 7542070b8f
commit 8221838f51
4 changed files with 22 additions and 14 deletions
+3 -1
View File
@@ -30,6 +30,7 @@ void Cell::reset( int background_color )
fallback = false;
width = 1;
renditions = Renditions( background_color );
wrap = false;
}
DrawState::DrawState( int s_width, int s_height )
@@ -339,7 +340,8 @@ void Framebuffer::resize( int s_width, int s_height )
for ( std::deque<Row>::iterator i = rows.begin();
i != rows.end();
i++ ) {
(*i).cells.resize( s_width, Cell( ds.get_background_rendition() ) );
i->set_wrap( false );
i->cells.resize( s_width, Cell( ds.get_background_rendition() ) );
}
ds.resize( s_width, s_height );