Require that the argument to the window option be non-zero.
authormillert <millert@openbsd.org>
Tue, 13 Apr 2021 15:39:21 +0000 (15:39 +0000)
committermillert <millert@openbsd.org>
Tue, 13 Apr 2021 15:39:21 +0000 (15:39 +0000)
commitc2da57e3a40347ed0d7d20fa9509b38919835b55
tree3aa43d8f278fb4e82372d6b58919d37ef4551ee6
parent208aabdd7fee6f334897d76dbf6afd8439072559
Require that the argument to the window option be non-zero.
A zero-row window would not be usable (no room to edit) and the
code is full of assumptions that "sp->t_rows - 1" >= 0.
From Erik Ruotsalainen, fixes a bug reported by Paul de Weerd.
usr.bin/vi/common/options.c