refactor(help): use setter/getter for help width

This commit is contained in:
Ayman Bagabas
2025-11-17 15:48:30 -05:00
parent 84a82dfeee
commit 538d39c727
3 changed files with 16 additions and 5 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ func TestFullHelp(t *testing.T) {
for _, w := range []int{20, 30, 40} {
t.Run(fmt.Sprintf("full help %d width", w), func(t *testing.T) {
m.Width = w
m.SetWidth(w)
s := m.FullHelpView(kb)
s = ansi.Strip(s)
golden.RequireEqual(t, []byte(s))