Skip to content

Commit

Permalink
fix(actions): ignore swap file dialog (closes #1011)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibhagwan committed Feb 6, 2024
1 parent 78bd372 commit 8245720
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/fzf-lua/core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,11 @@ M.fzf_wrap = function(opts, contents, fn_selected)
xpcall(function()
opts.fn_selected(selected, opts)
end, function(err)
-- ignore existing swap file error, the choices dialog will still be
-- displayed to user to make a selection once fzf-lua exits (#1011)
if err:match("Vim%(edit%):E325") then
return
end
utils.err("fn_selected threw an error: " .. debug.traceback(err, 1))
end)
end
Expand Down

0 comments on commit 8245720

Please sign in to comment.