Fix valgrind error with 1-col char then 2-col char in a 1x1 terminal
This commit is contained in:
@@ -60,12 +60,10 @@ void Emulator::print( const Parser::Print *act )
|
|||||||
fb.get_mutable_row( -1 )->set_wrap( true );
|
fb.get_mutable_row( -1 )->set_wrap( true );
|
||||||
fb.ds.move_col( 0 );
|
fb.ds.move_col( 0 );
|
||||||
fb.move_rows_autoscroll( 1 );
|
fb.move_rows_autoscroll( 1 );
|
||||||
}
|
} else if ( fb.ds.auto_wrap_mode
|
||||||
|
&& (chwidth == 2)
|
||||||
/* wrap 2-cell chars if no room, even without will-wrap flag */
|
&& (fb.ds.get_cursor_col() == fb.ds.get_width() - 1) ) {
|
||||||
if ( fb.ds.auto_wrap_mode
|
/* wrap 2-cell chars if no room, even without will-wrap flag */
|
||||||
&& (chwidth == 2)
|
|
||||||
&& (fb.ds.get_cursor_col() == fb.ds.get_width() - 1) ) {
|
|
||||||
fb.reset_cell( this_cell );
|
fb.reset_cell( this_cell );
|
||||||
fb.get_mutable_row( -1 )->set_wrap( false );
|
fb.get_mutable_row( -1 )->set_wrap( false );
|
||||||
/* There doesn't seem to be a consistent way to get the
|
/* There doesn't seem to be a consistent way to get the
|
||||||
|
|||||||
Reference in New Issue
Block a user