mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
feat(diagnostic): update jumplist on goto_next/prev (#15942)
This commit is contained in:
parent
cbc60524f1
commit
b55944e8af
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user