We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 755d9e6 commit 562593aCopy full SHA for 562593a
1 file changed
lua/fzf-lua/providers/ui_select.lua
@@ -48,7 +48,7 @@ end
48
49
M.accept_item = function(selected, o)
50
if #selected == 0 then return end
51
- local idx = selected and tonumber(selected[1]:match("^(%d+)%.")) or nil
+ local idx = selected and tonumber(selected[1]:match("^%s*(%d+)%.")) or nil
52
o._on_choice(idx and o._items[idx] or nil, idx)
53
o._on_choice_called = true
54
end
0 commit comments