mirror of
https://github.com/ThePrimeagen/harpoon
synced 2024-09-16 13:34:03 +02:00
normalize filename using vim.fs
This commit is contained in:
parent
21d0d1bfa3
commit
e4a91c481b
1 changed files with 1 additions and 4 deletions
|
@ -173,10 +173,7 @@ function M.nav_file(id)
|
|||
end
|
||||
|
||||
local mark = Marked.get_marked_file(idx)
|
||||
local filename = mark.filename
|
||||
if filename:sub(1, 1) ~= "/" then
|
||||
filename = vim.loop.cwd() .. "/" .. mark.filename
|
||||
end
|
||||
local filename = vim.fs.normalize(mark.filename)
|
||||
local buf_id = get_or_create_buffer(filename)
|
||||
local set_row = not vim.api.nvim_buf_is_loaded(buf_id)
|
||||
|
||||
|
|
Loading…
Reference in a new issue