Permalink
Browse files

Properly reset tab stops on resize

  • Loading branch information...
1 parent c390ee9 commit 0293e579d2bd82942158e7d4e0b7705cf9a66491 @keithw keithw committed Apr 16, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/terminal/terminalframebuffer.cc
@@ -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 */

0 comments on commit 0293e57

Please sign in to comment.