From 92befa26dbf4debd661c9e990ade55d047d8e5bb Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 7 Dec 2023 09:30:04 +0530 Subject: [PATCH] Fix #6889 --- kittens/ask/choices.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kittens/ask/choices.go b/kittens/ask/choices.go index 86bd320d5..930ba85e8 100644 --- a/kittens/ask/choices.go +++ b/kittens/ask/choices.go @@ -130,6 +130,9 @@ func GetChoices(o *Options) (response string, err error) { } draw_long_text := func(screen_width int, text string, msg_lines []string) []string { + if screen_width < 3 { + return msg_lines + } if text == "" { msg_lines = append(msg_lines, "") } else {