mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06: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
|
return
|
||||||
end
|
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]})
|
vim.api.nvim_win_set_cursor(win_id, {pos[1] + 1, pos[2]})
|
||||||
|
|
||||||
if enable_popup then
|
if enable_popup then
|
||||||
|
Loading…
Reference in New Issue
Block a user