aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/termptyesc.c
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2017-05-17 21:49:29 +0200
committerBoris Faure <billiob@gmail.com>2017-05-17 21:49:52 +0200
commitce490ededca34107af160c26f57c70ab52c191f3 (patch)
treeed92535310f3c4d2e9485337d70f5cce93737b14 /src/bin/termptyesc.c
parenttermptyesc: restrict values on scrolling regions (diff)
downloadterminology-ce490ededca34107af160c26f57c70ab52c191f3.tar.gz
termptyesc: fix issue with tmux introduced by previous commit
Diffstat (limited to 'src/bin/termptyesc.c')
-rw-r--r--src/bin/termptyesc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/termptyesc.c b/src/bin/termptyesc.c
index 7bb131a..c558679 100644
--- a/src/bin/termptyesc.c
+++ b/src/bin/termptyesc.c
@@ -1073,7 +1073,7 @@ _handle_esc_csi(Termpty *ty, const Eina_Unicode *c, Eina_Unicode *ce)
{
DBG("2 regions args: %i %i", arg, arg2);
TERMPTY_RESTRICT_FIELD(arg, 1, ty->h);
- TERMPTY_RESTRICT_FIELD(arg2, 1, ty->h);
+ TERMPTY_RESTRICT_FIELD(arg2, 1, ty->h+1);
ty->termstate.scroll_y1 = arg - 1;
ty->termstate.scroll_y2 = arg2;
if ((arg == 1) && (arg2 == ty->h))