fix: live_grep path appending with cwd when already absolute (#768)
This commit is contained in:
committed by
GitHub
parent
d27907b0da
commit
f92b9b1fae
@@ -51,9 +51,7 @@ files.live_grep = function(opts)
|
||||
local file = vim.api.nvim_buf_get_name(bufnr)
|
||||
table.insert(filelist, tele_path.make_relative(file, opts.cwd))
|
||||
end
|
||||
end
|
||||
|
||||
if search_dirs then
|
||||
elseif search_dirs then
|
||||
for i, path in ipairs(search_dirs) do
|
||||
search_dirs[i] = vim.fn.expand(path)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user