Skip to content

Commit

Permalink
fix(Windows): live_grep_native with fzf >= 0.51
Browse files Browse the repository at this point in the history
fzf v0.51 changed the way Windows escaping is done
  • Loading branch information
ibhagwan committed May 7, 2024
1 parent b99b4fd commit b6996a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/fzf-lua/core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1071,7 +1071,8 @@ M.setup_fzf_interactive_flags = function(command, fzf_field_expression, opts)
-- TODO: open an upstream bug rgd ! as without the double escape
-- if an ! is found in the command (i.e. -g "rg ... -g !.git")
-- sending a caret will require doubling (i.e. sending ^^ for ^)
[[IF ^%s NEQ ^^"^" ]],
opts.__FZF_VERSION and opts.__FZF_VERSION >= 0.51
and [[IF %s NEQ ^"^" ]] or [[IF ^%s NEQ ^^"^" ]],
"[ -z %s ] || "),
-- {q} for fzf is automatically shell escaped
fzf_field_expression
Expand Down

0 comments on commit b6996a8

Please sign in to comment.