Bring some sanity to renditions (rationalize list on append)

This commit is contained in:
Keith Winstein
2011-02-05 05:23:57 -05:00
parent 80f469bdc6
commit ca17e769b7
6 changed files with 41 additions and 12 deletions
+2 -2
View File
@@ -66,7 +66,7 @@ std::string Display::new_frame( Framebuffer &f )
cursor_was_moved = true;
}
std::vector<int> cell_print_renditions;
std::list<int> cell_print_renditions;
cell_print_renditions = cell->renditions;
cell_print_renditions.insert( cell_print_renditions.begin(), 0 );
@@ -74,7 +74,7 @@ std::string Display::new_frame( Framebuffer &f )
/* print renditions */
screen.append( "\033[0" );
char rendition[ 32 ];
for ( std::vector<int>::iterator i = cell->renditions.begin();
for ( std::list<int>::iterator i = cell->renditions.begin();
i != cell->renditions.end();
i++ ) {
snprintf( rendition, 32, ";%d", *i );