diff --git a/src/bin/termptyops.c b/src/bin/termptyops.c index c6f81e93..d7c2dbc9 100644 --- a/src/bin/termptyops.c +++ b/src/bin/termptyops.c @@ -127,7 +127,7 @@ _termpty_text_scroll_test(Termpty *ty) int e = ty->h; if (ty->state.scroll_y2 != 0) e = ty->state.scroll_y2; - if ((ty->state.cy >= e) && (ty->state.cy >= ty->h)) + if (ty->state.cy >= e) { _termpty_text_scroll(ty); ty->state.cy = e - 1;