From 2f2582e5f716d84d7c9ae77c5439f27e1ac267f7 Mon Sep 17 00:00:00 2001 From: William Boman Date: Mon, 6 Dec 2021 18:26:00 +0100 Subject: [PATCH] call on_choice before return --- lua/dressing/select/telescope.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/dressing/select/telescope.lua b/lua/dressing/select/telescope.lua index 84c4ed6..e6f3c80 100644 --- a/lua/dressing/select/telescope.lua +++ b/lua/dressing/select/telescope.lua @@ -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