summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fe-text/term-terminfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fe-text/term-terminfo.c b/src/fe-text/term-terminfo.c
index b13426d1..29d3f7eb 100644
--- a/src/fe-text/term-terminfo.c
+++ b/src/fe-text/term-terminfo.c
@@ -293,7 +293,7 @@ void term_window_scroll(TERM_WINDOW *window, int count)
term_move_reset(vcx, vcy);
/* set the newly scrolled area dirty */
- for (y = 0; y < window->height; y++)
+ for (y = 0; (window->y+y) < term_height && y < window->height; y++)
term_lines_empty[window->y+y] = FALSE;
}