fix stupid segfault

This commit is contained in:
Boris Faure 2017-06-06 00:19:48 +02:00
parent cc5fcac03d
commit 64d7150252
1 changed files with 1 additions and 1 deletions

View File

@ -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;