From 2acc6cef51a7257648a80270cf2c631128bcffd1 Mon Sep 17 00:00:00 2001 From: christos Date: Tue, 10 Nov 2020 22:52:45 +0000 Subject: don't segv if the terminal is too big. --- warp/term.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/warp/term.c b/warp/term.c index 34851566..47a230ed 100644 --- a/warp/term.c +++ b/warp/term.c @@ -286,6 +286,8 @@ term_set(char *tcbuf) /* temp area for "uncompiled" termcap entry */ no_can_do("dumb"); if (!scorespec && (LINES < 24 || COLS < 80)) no_can_do("puny"); + if (LINES > 25) + no_can_do("humongus"); crmode(); raw(); -- cgit v1.2.3-56-ge451