chore(examples): update help example to use SetWidth
This commit is contained in:
parent
ec39c45b4f
commit
bf89717024
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue