Merge pull request #114 from epheien/feat-jumplist

feat: add to jumplist before goto location
This commit is contained in:
~hedy
2025-01-07 21:28:44 +08:00
committed by GitHub

View File

@@ -392,6 +392,9 @@ function Sidebar:__goto_location(change_focus)
return
end
-- XXX: There will be strange problems when using `nvim_buf_set_mark()`.
vim.fn.win_execute(self.code.win, "normal! m'")
vim.api.nvim_win_set_cursor(self.code.win, { node.line + 1, node.character })
if cfg.o.outline_window.center_on_jump then