From 0e8aa303d8415f6b6e13a1a291497109246431fa Mon Sep 17 00:00:00 2001 From: Mort Yao Date: Fri, 21 Dec 2018 00:13:28 +0100 Subject: [PATCH] Main: restrict minimum screen width to 4 (close #269) --- include/Main.awk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/Main.awk b/include/Main.awk index 1a28d53a..44f2f22c 100644 --- a/include/Main.awk +++ b/include/Main.awk @@ -117,7 +117,7 @@ function initMisc( command, group, temp) { command = "tput cols" SUPERR command | getline temp close(command) - Option["width"] = temp ? temp - 2 : 64 + Option["width"] = temp > 5 ? temp - 2 : 64 # minimum screen width: 4 } # Disable ANSI escape codes if required