aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-04-15 22:05:08 -0400
committerJesse Luehrs <doy@tozt.net>2014-04-15 22:05:08 -0400
commit6d214b44d9f150d82c84008fda8d4e4c2f4d18e9 (patch)
tree3658d403ed500300ade36a9dcd47a25853cb7aaf
parent3d9509f615fff8b4bdd6a79d2aa7e0b2bdb973ef (diff)
downloadrunes-6d214b44d9f150d82c84008fda8d4e4c2f4d18e9.tar.gz
runes-6d214b44d9f150d82c84008fda8d4e4c2f4d18e9.zip
comment
-rw-r--r--term.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/term.c b/term.c
index ad9392f..3fcb30a 100644
--- a/term.c
+++ b/term.c
@@ -14,6 +14,9 @@ void runes_term_init(RunesTerm *t, int argc, char *argv[])
runes_window_backend_create_window(t, argc, argv);
runes_display_set_window_size(t);
+
+ /* have to initialize these here instead of in display_init because they
+ * depend on the window size being set */
t->scroll_top = 0;
t->scroll_bottom = t->rows - 1;