fix(select): use original vim.ui.select if enabled is false

This commit is contained in:
Andrey Avramenko 2022-06-01 17:51:52 +03:00
parent 9bb33efe9c
commit 4bd4167a77
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ return vim.schedule_wrap(function(items, opts, on_choice)
local config = global_config.get_mod_config("select", opts)
if not config.enabled then
return patch.original_mods.input(items, opts, on_choice)
return patch.original_mods.select(items, opts, on_choice)
end
opts.prompt = opts.prompt or "Select one of:"