Skip to content

Commit

Permalink
fix(refile): remove unnecessary escaping for refile autocompletion
Browse files Browse the repository at this point in the history
Fixes #877
  • Loading branch information
kristijanhusak committed Jan 30, 2025
1 parent b587545 commit d56c691
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/orgmode/utils/fs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function M.trim_common_root(paths)
end)

local result = {}
local root = vim.pesc(vim.fn.fnamemodify(filepaths[1], ':h')) .. '/'
local root = vim.fn.fnamemodify(filepaths[1], ':h') .. '/'

for _, path in ipairs(paths) do
local relative_path = path:sub(#root + 1)
Expand Down

0 comments on commit d56c691

Please sign in to comment.