*** empty log message ***
authorroot <root>
Wed, 5 Nov 2008 13:04:51 +0000 (13:04 +0000)
committerroot <root>
Wed, 5 Nov 2008 13:04:51 +0000 (13:04 +0000)
src/screen.C

index cd1c12549a49f6654a9ec5eafb349022f2e1c74f..4f259804276e232c95289284f725fcf63951fcf6 100644 (file)
@@ -396,6 +396,12 @@ rxvt_term::scr_reset ()
       clamp_it (screen.cur.col, 0, ncol - 1);
     }
 
+  free (tabs);
+  tabs = (char *)rxvt_malloc (ncol);
+
+  for (int col = ncol; --col; )
+    tabs [col] = col % TABSIZE == 0;
+
   CLEAR_ALL_SELECTION ();
 
   prev_nrow = nrow;
@@ -456,12 +462,6 @@ rxvt_term::scr_soft_reset ()
   if (current_screen != PRIMARY)
     scr_swap_screen ();
 
-  free (tabs);
-  tabs = (char *)rxvt_malloc (ncol);
-
-  for (int col = ncol; --col; )
-    tabs [col] = col % TABSIZE == 0;
-
   scr_scroll_region (0, MAX_ROWS - 1);
   scr_rendition (0, ~RS_None);
   scr_insert_mode (0);