aboutsummaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
Diffstat (limited to 'st.c')
-rw-r--r--st.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/st.c b/st.c
index 8f6aa04..5f206fd 100644
--- a/st.c
+++ b/st.c
@@ -373,11 +373,11 @@ tscrollup (int n) {
373 for(i = 0; i < n; i++) 373 for(i = 0; i < n; i++)
374 memset(term.line[term.top+i], 0, term.col*sizeof(Glyph)); 374 memset(term.line[term.top+i], 0, term.col*sizeof(Glyph));
375 375
376 for(i = term.top; i <= term.bot-n; i++) { 376 for(i = term.top; i <= term.bot-n; i++) {
377 temp = term.line[i]; 377 temp = term.line[i];
378 term.line[i] = term.line[i+n]; 378 term.line[i] = term.line[i+n];
379 term.line[i+n] = temp; 379 term.line[i+n] = temp;
380 } 380 }
381} 381}
382 382
383void 383void
@@ -1181,7 +1181,7 @@ draw(int redraw_all) {
1181 char buf[DRAW_BUF_SIZ]; 1181 char buf[DRAW_BUF_SIZ];
1182 1182
1183 XSetForeground(xw.dis, dc.gc, dc.col[DefaultBG]); 1183 XSetForeground(xw.dis, dc.gc, dc.col[DefaultBG]);
1184 XFillRectangle(xw.dis, xw.buf, dc.gc, 0, 0, xw.w, xw.h); 1184 XFillRectangle(xw.dis, xw.buf, dc.gc, 0, 0, xw.bufw, xw.bufh);
1185 for(y = 0; y < term.row; y++) { 1185 for(y = 0; y < term.row; y++) {
1186 base = term.line[y][0]; 1186 base = term.line[y][0];
1187 i = ox = 0; 1187 i = ox = 0;