From 9666676766bf21364f4fc4d0d1d336e72f2a91b4 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Tue, 6 Oct 2026 12:57:23 -0400 Subject: refactor: split casino.go, dedup helpers, remove audit docs --- internal/game/casino_commands.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'internal/game/casino_commands.go') diff --git a/internal/game/casino_commands.go b/internal/game/casino_commands.go index b6deb21..95259c0 100644 --- a/internal/game/casino_commands.go +++ b/internal/game/casino_commands.go @@ -88,6 +88,9 @@ func (g *Game) casinoCommandColumns(sess *net.Session, commands []casino.MenuCom // Input is uncolored command/description text; paint only after measuring. func casinoWrapWords(text string, width int) []string { + if width < 1 { + width = 1 + } var lines []string line := "" for _, word := range strings.Fields(text) { -- cgit v1.2.3