chore(examples): update help example to use SetWidth

This commit is contained in:
Ayman Bagabas 2026-03-11 18:18:16 +03:00
parent ec39c45b4f
commit bf89717024
No known key found for this signature in database
GPG key ID: C8D51D2157C919AC

View file

@ -89,7 +89,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
case tea.WindowSizeMsg:
// If we set a width on the help menu it can gracefully truncate
// its view as needed.
m.help.Width = msg.Width
m.help.SetWidth(msg.Width)
case tea.KeyPressMsg:
switch {