From 12ed73f9ff9de1a145683de8a73c170613371979 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Mon, 29 Jun 2026 01:41:49 -0400 Subject: wrap_width and table improvements, targeting 80 character default width --- internal/game/cmd_shop.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'internal/game/cmd_shop.go') diff --git a/internal/game/cmd_shop.go b/internal/game/cmd_shop.go index 91a11c6..69de750 100644 --- a/internal/game/cmd_shop.go +++ b/internal/game/cmd_shop.go @@ -118,8 +118,10 @@ func (g *Game) showShopBrowse(sess *net.Session) { } unicode := true + wrapWidth := 0 if p := sess.Player; p != nil { unicode = p.OptionBool("unicode") + wrapWidth = p.OptionInt("wrap_width") } t := ui.Table{ @@ -145,7 +147,7 @@ func (g *Game) showShopBrowse(sess *net.Session) { }) } - for _, line := range t.Render(unicode) { + for _, line := range t.Render(unicode, wrapWidth) { sess.WriteLine(line) } } -- cgit v1.2.3