summaryrefslogtreecommitdiff
path: root/src/fe-text/term-terminfo.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-11-15 00:32:30 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-11-15 00:32:30 +0000
commit0dafb7349ae7fb31215fde6016b6d63008ba5b2c (patch)
tree8931a6ce71ffdcd2d6f2edcd83857b2073aa72bd /src/fe-text/term-terminfo.c
parentc17439820d2c5a66c6ea8c17ba6be61a6da82582 (diff)
downloadirssi-0dafb7349ae7fb31215fde6016b6d63008ba5b2c.zip
Scrolling should dirty the whole scrolling area, not just the new lines.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2014 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text/term-terminfo.c')
-rw-r--r--src/fe-text/term-terminfo.c20
1 files changed, 5 insertions, 15 deletions
diff --git a/src/fe-text/term-terminfo.c b/src/fe-text/term-terminfo.c
index 7427985b..e110085f 100644
--- a/src/fe-text/term-terminfo.c
+++ b/src/fe-text/term-terminfo.c
@@ -233,24 +233,14 @@ void term_window_clear(TERM_WINDOW *window)
/* Scroll window up/down */
void term_window_scroll(TERM_WINDOW *window, int count)
{
- int y, idx;
+ int y;
terminfo_scroll(window->y, window->y+window->height-1, count);
-
- /* set the newly scrolled lines dirty */
- if (count < 0) {
- /* scrolling down - dirty the top */
- idx = window->y;
- count = -count;
- } else {
- /* scrolling up - dirty the bottom */
- idx = window->y+window->height-count;
- }
-
- for (y = 0; y < count; y++)
- term_lines_empty[idx+y] = FALSE;
-
term_move_reset(vcx, vcy);
+
+ /* set the newly scrolled area dirty */
+ for (y = 0; y < window->height; y++)
+ term_lines_empty[window->y+y] = FALSE;
}
/* Change active color */