Skip to content

Commit

Permalink
Main: restrict minimum screen width to 4 (close #269)
Browse files Browse the repository at this point in the history
  • Loading branch information
soimort committed Dec 20, 2018
1 parent 731f261 commit 0e8aa30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/Main.awk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0e8aa30

Please sign in to comment.