Skip to content
Myr

chore(examples): update help example to use SetWidth

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Ayman Bagabas · committed by Ayman Bagabas · parent ec39c45 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:examples/help/main.go+1 added-1 removed
87 unmodified lines
88 switch msg := msg.(type) {89 case tea.WindowSizeMsg:90 // If we set a width on the help menu it can gracefully truncate91 // its view as needed.92 m.help.Width = msg.Width92 m.help.SetWidth(msg.Width)9394 case tea.KeyPressMsg:95 switch {96 case key.Matches(msg, m.keys.Up):
51 unmodified lines