diff --git a/terminal.c b/terminal.c index 7aafb58b..26a3f0c9 100644 --- a/terminal.c +++ b/terminal.c @@ -2344,7 +2344,7 @@ static void check_boundary(Terminal *term, int x, int y) termline *ldata; /* Validate input coordinates, just in case. */ - if (x == 0 || x > term->cols) + if (x <= 0 || x > term->cols) return; ldata = scrlineptr(y);