call on_choice before return

This commit is contained in:
William Boman 2021-12-06 18:26:00 +01:00
parent 14780e4b7d
commit 2f2582e5f7
1 changed files with 1 additions and 0 deletions

View File

@ -37,6 +37,7 @@ M.select = function(config, items, opts, on_choice)
actions._close(prompt_bufnr, false)
if not selection then
-- User did not select anything.
on_choice(nil, nil)
return
end
local idx = nil