From 4bd4167a77fa6d5feb16db40c5e34fd04da0d263 Mon Sep 17 00:00:00 2001 From: Andrey Avramenko Date: Wed, 1 Jun 2022 17:51:52 +0300 Subject: [PATCH] fix(select): use original vim.ui.select if enabled is false --- lua/dressing/select/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/dressing/select/init.lua b/lua/dressing/select/init.lua index df2288d..ec28d36 100644 --- a/lua/dressing/select/init.lua +++ b/lua/dressing/select/init.lua @@ -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:"