summaryrefslogtreecommitdiff
path: root/tests/api_args_test.c
AgeCommit message (Collapse)Author
10 daysReject a scrollback above TERM_SCROLLBACK_MAXBerke Güzel
term_new() silently cut a scrollback above 1000000 lines to 1000000. The limit now has a name in term.h, and term_new() returns NULL above it, as it does for the other invalid options. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
10 daysReject invalid arguments instead of ignoring themBerke Güzel
term_feed() returns bool and rejects a NULL terminal, a NULL buffer with a nonzero length, and any flag bit it does not know. Unknown bits are rejected now so that later flags can be added without changing what the old calls mean. term_new() returns NULL for a negative size component, columns above TERM_MAX_COLS, a negative scrollback, or a cursor style outside the enum. Zero still selects the default size and scrollback. It no longer clamps bad values silently. term_resize() rejects columns above TERM_MAX_COLS instead of clamping them, which matches how it already rejects a size below 1. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>