repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: 11090e45362c759d0115689c61ad76e10984e640:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit 11090e45362c759d0115689c61ad76e10984e640
Author: Marc Lehmann 
Date:   Wed Nov 5 13:04:51 2008 +0000

    *** empty log message ***

diff --git a/src/screen.C b/src/screen.C
index cd1c12549a49f6654a9ec5eafb349022f2e1c74f..
index ..4f259804276e232c95289284f725fcf63951fcf6 100644
--- a/src/screen.C
+++ b/src/screen.C
@@ -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);

-----END OF PAGE-----