aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--st.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/st.c b/st.c
index 9eebbe4..814f3f5 100644
--- a/st.c
+++ b/st.c
@@ -2700,14 +2700,12 @@ tresize(int col, int row) {
2700 2700
2701 /* resize each row to new width, zero-pad if needed */ 2701 /* resize each row to new width, zero-pad if needed */
2702 for(i = 0; i < minrow; i++) { 2702 for(i = 0; i < minrow; i++) {
2703 term.dirty[i] = 1;
2704 term.line[i] = xrealloc(term.line[i], col * sizeof(Glyph)); 2703 term.line[i] = xrealloc(term.line[i], col * sizeof(Glyph));
2705 term.alt[i] = xrealloc(term.alt[i], col * sizeof(Glyph)); 2704 term.alt[i] = xrealloc(term.alt[i], col * sizeof(Glyph));
2706 } 2705 }
2707 2706
2708 /* allocate any new rows */ 2707 /* allocate any new rows */
2709 for(/* i == minrow */; i < row; i++) { 2708 for(/* i == minrow */; i < row; i++) {
2710 term.dirty[i] = 1;
2711 term.line[i] = xmalloc(col * sizeof(Glyph)); 2709 term.line[i] = xmalloc(col * sizeof(Glyph));
2712 term.alt[i] = xmalloc(col * sizeof(Glyph)); 2710 term.alt[i] = xmalloc(col * sizeof(Glyph));
2713 } 2711 }
@@ -2727,7 +2725,7 @@ tresize(int col, int row) {
2727 tsetscroll(0, row-1); 2725 tsetscroll(0, row-1);
2728 /* make use of the LIMIT in tmoveto */ 2726 /* make use of the LIMIT in tmoveto */
2729 tmoveto(term.c.x, term.c.y); 2727 tmoveto(term.c.x, term.c.y);
2730 /* Clearing both screens */ 2728 /* Clearing both screens (it makes dirty all lines) */
2731 orig = term.line; 2729 orig = term.line;
2732 c = term.c; 2730 c = term.c;
2733 do { 2731 do {