Revert "lsp: fix regression in jump_to_location() (#14446)"

This reverts commit 993ca90c9b.
This commit is contained in:
Marco Hinz
2021-05-19 15:31:41 +02:00
parent 52ca7f1a26
commit 3e5c484ec5

View File

@@ -944,9 +944,6 @@ function M.jump_to_location(location)
local from = {from_bufnr, vim.fn.line('.'), vim.fn.col('.'), 0}
local item = {tagname=vim.fn.expand('<cword>'), from=from}
-- Save position in jumplist
vim.cmd("mark '")
--- Jump to new location (adjusting for UTF-16 encoding of characters)
local bufnr = vim.uri_to_bufnr(uri)
api.nvim_set_current_buf(bufnr)