aboutsummaryrefslogtreecommitdiffstats
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
parenttermptyesc: fix handling of DECSLRM. Ref T5533 (diff)
downloadterminology-64d7150252c77b58a64a07d7e6043c5c01641bf4.tar.gz
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)
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;