mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-13 17:40:25 +00:00
Merge pull request #147 from aldevv/master
fixed inconsistent jumping between similarly named files
This commit is contained in:
commit
0f22afa601
@ -164,7 +164,7 @@ function M.nav_file(id)
|
||||
end
|
||||
|
||||
local mark = Marked.get_marked_file(idx)
|
||||
local buf_id = vim.fn.bufnr(mark.filename, true)
|
||||
local buf_id = vim.fn.bufnr(vim.fn.getcwd() .. "/" .. mark.filename, true)
|
||||
local set_row = not vim.api.nvim_buf_is_loaded(buf_id)
|
||||
|
||||
vim.api.nvim_set_current_buf(buf_id)
|
||||
|
Loading…
x
Reference in New Issue
Block a user