repo: rxvt-unicode-sixel action: commit revision: path_from: revision_from: 11090e45362c759d0115689c61ad76e10984e640: path_to: revision_to:
commit 11090e45362c759d0115689c61ad76e10984e640 Author: Marc LehmannDate: Wed Nov 5 13:04:51 2008 +0000 *** empty log message *** diff --git a/src/screen.C b/src/screen.C
--- 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-----