render: reset 'normal' grid's view correctly

This commit is contained in:
Daniel Eklöf 2019-07-10 14:34:32 +02:00
parent 8a65d52b21
commit 4cef8ed2cc
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -455,7 +455,7 @@ render_resize(struct terminal *term, int width, int height)
term->scroll_region.end = term->rows;
term->normal.offset %= term->normal.num_rows;
term->normal.view %= term->alt.num_rows;
term->normal.view %= term->normal.num_rows;
term->alt.offset %= term->alt.num_rows;
term->alt.view %= term->alt.num_rows;