Merge pull request #44 from Weypare/original-select

fix(select): use original vim.ui.select if enabled is false
This commit is contained in:
Steven Arcangeli 2022-06-01 08:29:56 -07:00 committed by GitHub
commit 1706d00209
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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:"