Skip to content

Commit

Permalink
fix(actions): LSP URIs confirm dialog (closes #1677)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibhagwan committed Jan 7, 2025
1 parent 2b6fb06 commit 12b4bc6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lua/fzf-lua/actions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,11 @@ M.vimcmd_entry = function(_vimcmd, selected, opts, pcall_vimcmd)
if entry.terminal and vimcmd == "bd" then
vimcmd = vimcmd .. "!"
end
-- URI entries only execute new buffers (new|vnew|tabnew)
if not entry.uri then
if entry.uri then
-- URI entries only execute new buffers (new|vnew|tabnew)
-- remove the piped cmd, "vsplit | e" -> "vsplit" (#1677)
vimcmd = vimcmd:match("[^|]+")
else
-- Force full paths when `autochdir=true` (#882)
vimcmd = string.format("%s %s", vimcmd, (function()
-- `:argdel|:argadd` uses only paths
Expand Down

0 comments on commit 12b4bc6

Please sign in to comment.