termptyesc: fix decera/decfra when bottom coordinate is too large

This commit is contained in:
Boris Faure 2018-11-26 21:07:56 +01:00
parent 71cbb44c08
commit d43110e0fd
1 changed files with 1 additions and 1 deletions

View File

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