summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2017-06-06 00:19:48 +0200
committerBoris Faure <billiob@gmail.com>2017-06-06 00:19:48 +0200
commit64d7150252c77b58a64a07d7e6043c5c01641bf4 (patch)
treee4b40acca52ef6e540f7c1e4f90e665037127efe
parentcc5fcac03d56a2aa05ff9b9a709de0c4baada4c5 (diff)
fix stupid segfault
-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;