summaryrefslogtreecommitdiff
path: root/tests/model.c
diff options
context:
space:
mode:
authorBerke Güzel <wenekar1@gmail.com>2026-10-15 12:38:37 +0300
committerBerke Güzel <wenekar1@gmail.com>2026-10-15 12:38:37 +0300
commit6cd9ab6f73994b68e8453c92a014d1a372af2a24 (patch)
tree742026e18d4f2210353efa15b1975610fc58f91b /tests/model.c
parent86b1eed7dd946d6054eff37cdb7b4a784283e23b (diff)
parente47f9f20d68eda78a6621917a7e100ae333a1a53 (diff)
Merge branch 'wt/strict-input' into api-hardening
# Conflicts: # src/screen.c
Diffstat (limited to 'tests/model.c')
-rw-r--r--tests/model.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/model.c b/tests/model.c
index 8dead6c..6e368ba 100644
--- a/tests/model.c
+++ b/tests/model.c
@@ -1290,7 +1290,7 @@ static void resize_plain(struct model *m, int cols, int rows)
static bool resize(struct model *m, int cols, int rows)
{
- if (cols > TERM_MAX_COLS) cols = TERM_MAX_COLS;
+ if (cols > TERM_MAX_COLS) return false;
if (cols == m->cols && rows == m->rows) return true;
if (cols > MAX_TABS) return false;
m->top = 0;