mirror of
https://github.com/neovim/neovim
synced 2025-07-18 02:01:46 +00:00
feat(diagnostic): update jumplist on goto_next/prev (#15942)
This commit is contained in:
@ -510,6 +510,9 @@ local function diagnostic_move_pos(opts, pos)
|
||||
return
|
||||
end
|
||||
|
||||
-- Save position in the window's jumplist
|
||||
vim.api.nvim_win_call(win_id, function() vim.cmd("normal! m'") end)
|
||||
|
||||
vim.api.nvim_win_set_cursor(win_id, {pos[1] + 1, pos[2]})
|
||||
|
||||
if enable_popup then
|
||||
|
Reference in New Issue
Block a user