aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/util.lua
diff options
context:
space:
mode:
authorMarco Hinz <mh.codebro@gmail.com>2021-05-19 15:31:41 +0200
committerMarco Hinz <mh.codebro@gmail.com>2021-05-19 15:31:41 +0200
commit3e5c484ec545d2614d52615dc8428bdb76fc054a (patch)
treeb6fd4abec0b31f83675fd2e4a8211ea8314fe2b7 /runtime/lua/vim/lsp/util.lua
parent52ca7f1a26e4da95f3b3b00670252cfdf788a011 (diff)
downloadrneovim-3e5c484ec545d2614d52615dc8428bdb76fc054a.tar.gz
rneovim-3e5c484ec545d2614d52615dc8428bdb76fc054a.tar.bz2
rneovim-3e5c484ec545d2614d52615dc8428bdb76fc054a.zip
Revert "lsp: fix regression in jump_to_location() (#14446)"
This reverts commit 993ca90c9b53033216d4973e2f995b995ed5740e.
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
-rw-r--r--runtime/lua/vim/lsp/util.lua3
1 files changed, 0 insertions, 3 deletions
diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua
index 57919e907c..bf663b9bd2 100644
--- a/runtime/lua/vim/lsp/util.lua
+++ b/runtime/lua/vim/lsp/util.lua
@@ -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)