Properly reset tab stops on resize

This commit is contained in:
Keith Winstein
2012-04-16 09:55:59 -04:00
parent c390ee9b80
commit 0293e579d2
+5 -1
View File
@@ -366,7 +366,11 @@ void DrawState::resize( int s_width, int s_height )
snap_cursor_to_border();
tabs.clear();
/* reset tab stops */
tabs = std::vector< bool >( width );
for ( int i = 0; i < width; i++ ) {
tabs[ i ] = ( (i % 8) == 0 );
}
/* saved cursor will be snapped to border on restore */