summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bin/termptyops.c2
1 files changed, 1 insertions, 1 deletions
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)
73 else 73 else
74 { 74 {
75 int x = ty->termstate.left_margin; 75 int x = ty->termstate.left_margin;
76 int w = ty->w; 76 int w = ty->w - x;
77 77
78 if (ty->termstate.right_margin) 78 if (ty->termstate.right_margin)
79 w = ty->termstate.right_margin - x; 79 w = ty->termstate.right_margin - x;