termptyesc: fix decera/decfra when bottom coordinate is too large
This commit is contained in:
parent
71cbb44c08
commit
d43110e0fd
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue