Skip to content

Commit

Permalink
fix(windows): shellescape space with caret (#1038)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibhagwan committed Feb 15, 2024
1 parent 9e81fd6 commit 1c696d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/fzf-lua/libuv.lua
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ M.shellescape = function(s, win_style)
-- escape all windows metacharacters but quotes
-- ( ) % ! ^ < > & | "
-- TODO: should % be escaped with ^ or %?
inner = inner:gsub('[%(%)%%!%^<>&|"]', function(x)
inner = inner:gsub('[%(%)%%!%^<>&|%s"]', function(x)
return "^" .. x
end)
-- escape backslashes at the end of the string
Expand Down

0 comments on commit 1c696d9

Please sign in to comment.