From ad72bc18d6bdcd06b264f421cf0a77552db653a9 Mon Sep 17 00:00:00 2001 From: Freed-Wu Date: Tue, 15 Sep 2020 13:13:28 +0800 Subject: [PATCH] Fix #23 --- autoload/quickui/listbox.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/quickui/listbox.vim b/autoload/quickui/listbox.vim index 7f952ee..69cdb71 100644 --- a/autoload/quickui/listbox.vim +++ b/autoload/quickui/listbox.vim @@ -30,7 +30,7 @@ function! quickui#listbox#parse(textlist) for description in a:textlist let obj = quickui#core#single_parse(description) let objects += [obj] - if obj.key_pos > 0 + if obj.key_pos >= 0 let items.keymap[tolower(obj.key_char)] = items.nrows endif let items.nrows += 1