feat(diagnostic): update jumplist on goto_next/prev (#15942)

This commit is contained in:
Sean Dewar 2021-10-07 16:46:17 +01:00 committed by GitHub
parent cbc60524f1
commit b55944e8af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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