aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/termptyesc.c
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2014-06-08 15:52:34 +0200
committerBoris Faure <billiob@gmail.com>2014-06-08 15:52:34 +0200
commite51c2168e971f508042d6a86782a9a10d8f1db3a (patch)
tree0576aa91917da3fb5714ed6c658dce1335db4c1e /src/bin/termptyesc.c
parenthandle fonts with multiple names (diff)
downloadterminology-e51c2168e971f508042d6a86782a9a10d8f1db3a.tar.gz
Diffstat (limited to 'src/bin/termptyesc.c')
-rw-r--r--src/bin/termptyesc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/termptyesc.c b/src/bin/termptyesc.c
index f8f34d9..2c6889b 100644
--- a/src/bin/termptyesc.c
+++ b/src/bin/termptyesc.c
@@ -946,6 +946,7 @@ _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 (arg == 0) arg = 1;
if (arg2 > ty->h) arg2 = ty->h;
ty->state.scroll_y1 = arg - 1;
ty->state.scroll_y2 = arg2;