diff --git a/src/bin/termptyops.c b/src/bin/termptyops.c index 70e366a..5be2ad5 100644 --- a/src/bin/termptyops.c +++ b/src/bin/termptyops.c @@ -73,7 +73,7 @@ termpty_text_scroll(Termpty *ty, Eina_Bool clear) else { int x = ty->termstate.left_margin; - int w = ty->w; + int w = ty->w - x; if (ty->termstate.right_margin) w = ty->termstate.right_margin - x;