Skip to content

Commit

Permalink
fix(list): update keybindings when setting items
Browse files Browse the repository at this point in the history
Bug: when calling SetItems when items was previously empty, the keybindings for
up/down do not appear.

Fix: call updateKeybindings in SetItems.

Signed-off-by: Christian Stewart <christian@paral.in>
  • Loading branch information
paralin authored and meowgorithm committed Jan 11, 2022
1 parent eef9098 commit 5f256bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions list/list.go
Expand Up @@ -297,6 +297,7 @@ func (m *Model) SetItems(i []Item) tea.Cmd {
}

m.updatePagination()
m.updateKeybindings()
return cmd
}

Expand Down

0 comments on commit 5f256bf

Please sign in to comment.