diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-04-23 18:43:46 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-04-23 18:43:46 -0400 |
commit | b50c050613d488d507d6d4c8ff4b865db476d384 (patch) | |
tree | ef50780ce43609039525c5edd82118e435b79660 /src/display.c | |
parent | ac67dce7914c6002e66bb6d977fb31513bcc68f1 (diff) | |
download | runes-b50c050613d488d507d6d4c8ff4b865db476d384.tar.gz runes-b50c050613d488d507d6d4c8ff4b865db476d384.zip |
reset the scroll region whenever the window is resized
seems like this is what other terminals do
Diffstat (limited to 'src/display.c')
-rw-r--r-- | src/display.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/display.c b/src/display.c index 524dd0e..e8483f4 100644 --- a/src/display.c +++ b/src/display.c @@ -42,6 +42,9 @@ void runes_display_set_window_size(RunesTerm *t) t->rows = t->ypixel / t->fonty; t->cols = t->xpixel / t->fontx; + t->scroll_top = 0; + t->scroll_bottom = t->rows - 1; + old_cr = t->cr; /* XXX this should really use cairo_surface_create_similar_image, but when |