Skip to content

Commit

Permalink
fix: don't replace "accept" in normal query
Browse files Browse the repository at this point in the history
  • Loading branch information
phanen authored and ibhagwan committed Jul 15, 2024
1 parent 3d214f8 commit eb63a4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/fzf-lua/core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -586,10 +586,10 @@ M.create_fzf_binds = function(opts)
-- that meant printing an empty string for the default enter key
if opts.__FZF_VERSION
and opts.__FZF_VERSION >= 0.53
and action:match("accept")
and action:match("accept%s-$")
and not action:match("print(.-)%+accept")
then
action = action:gsub("accept", "print(enter)+accept")
action = action:gsub("accept%s-$", "print(enter)+accept")
end
table.insert(tbl, string.format("%s:%s", key, action))
end
Expand Down

0 comments on commit eb63a4b

Please sign in to comment.