aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2018-11-26 21:07:56 +0100
committerBoris Faure <billiob@gmail.com>2018-12-27 22:14:44 +0100
commitd43110e0fd7824becaa9c28ca579657da25a79b5 (patch)
treef84d4245249ba2b416afa14c235e48d434bef190 /src
parenttests: add test on cursor movements (diff)
downloadterminology-d43110e0fd7824becaa9c28ca579657da25a79b5.tar.gz
termptyesc: fix decera/decfra when bottom coordinate is too large
Diffstat (limited to 'src')
-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 143d180..3c5e5e2 100644
--- a/src/bin/termptyesc.c
+++ b/src/bin/termptyesc.c
@@ -1104,7 +1104,7 @@ _clean_up_rect_coordinates(Termpty *ty,
}
bottom--;
if (bottom > ty->h)
- bottom = ty->h;
+ bottom = ty->h - 1;
if ((bottom < top) || (right < left))
return -1;