mirror of
https://github.com/Maks1mS/bubbles.git
synced 2024-12-23 22:32:59 +03:00
fix(list): check items slice len
Signed-off-by: Christian Stewart <christian@paral.in>
This commit is contained in:
parent
b35f96cd2d
commit
eef9098f37
@ -611,7 +611,7 @@ func (m *Model) updateKeybindings() {
|
||||
m.KeyMap.CloseFullHelp.SetEnabled(false)
|
||||
|
||||
default:
|
||||
hasItems := m.items != nil
|
||||
hasItems := len(m.items) != 0
|
||||
m.KeyMap.CursorUp.SetEnabled(hasItems)
|
||||
m.KeyMap.CursorDown.SetEnabled(hasItems)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user