Skip to content

Commit

Permalink
fix(fzf-lua): not returning selected result
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc committed Jan 25, 2024
1 parent 9f9b773 commit 0e88293
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lua/dressing/select/fzf_lua.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ M.select = function(config, items, opts, on_choice)
once = true,
nested = true,
callback = function()
local cb = on_choice
on_choice = function() end
cb()
vim.defer_fn(function()
local cb = on_choice
on_choice = function() end
cb()
end, 10)
end,
})
end
Expand Down

0 comments on commit 0e88293

Please sign in to comment.