diff options
| author | historia <[not public]> | 2026-10-06 12:57:23 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-10-06 12:57:23 -0400 |
| commit | 9666676766bf21364f4fc4d0d1d336e72f2a91b4 (patch) | |
| tree | 0cade34091d7602790dc38cd44053f0b74bbadf2 /internal/game/casino_commands.go | |
| parent | 4bc1daaf259e0c19c5fe4a12ec8bc7f6e5a735c1 (diff) | |
| download | thehouseoficarus-9666676766bf21364f4fc4d0d1d336e72f2a91b4.tar.gz | |
refactor: split casino.go, dedup helpers, remove audit docs
Diffstat (limited to 'internal/game/casino_commands.go')
| -rw-r--r-- | internal/game/casino_commands.go | 3 |
1 files changed, 3 insertions, 0 deletions
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) { |
