Skip to content

Commit 92c859e

Browse files
authored
fix(grug-far-nvim): escape spaces and special symbols in filepath (#1639)
1 parent 4e6feff commit 92c859e

File tree

1 file changed

+1
-1
lines changed
  • lua/astrocommunity/search/grug-far-nvim

1 file changed

+1
-1
lines changed

lua/astrocommunity/search/grug-far-nvim/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ return {
4646
}
4747
maps.n[prefix .. "f"] = {
4848
function()
49-
local filter = require("astrocore.buffer").is_valid() and vim.fn.expand "%" or nil
49+
local filter = require("astrocore.buffer").is_valid() and vim.fn.fnameescape(vim.fn.expand "%") or nil
5050
grug_far_open { prefills = { paths = filter } }
5151
end,
5252
desc = "Search/Replace file",

0 commit comments

Comments
 (0)