From 5f256bf34f242d22573128522c9728cfe803bf25 Mon Sep 17 00:00:00 2001 From: Christian Stewart Date: Mon, 3 Jan 2022 14:00:59 -0800 Subject: [PATCH] fix(list): update keybindings when setting items 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 --- list/list.go | 1 + 1 file changed, 1 insertion(+) diff --git a/list/list.go b/list/list.go index dd2bb9d8..19e61d7e 100644 --- a/list/list.go +++ b/list/list.go @@ -297,6 +297,7 @@ func (m *Model) SetItems(i []Item) tea.Cmd { } m.updatePagination() + m.updateKeybindings() return cmd }