simplify code

This commit is contained in:
Boris Faure 2013-11-16 19:27:09 +01:00
parent 4bc3357a91
commit 40f0dc6950
1 changed files with 1 additions and 2 deletions

View File

@ -942,9 +942,8 @@ _handle_esc_csi(Termpty *ty, const Eina_Unicode *c, Eina_Unicode *ce)
DBG("2 regions args: %i %i", arg, arg2);
if (arg >= ty->h) arg = ty->h - 1;
if (arg2 > ty->h) arg2 = ty->h;
arg2++;
ty->state.scroll_y1 = arg - 1;
ty->state.scroll_y2 = arg2 - 1;
ty->state.scroll_y2 = arg2;
}
}
}