mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
lsp: fix regression in jump_to_location() (#14446)
This fixes a regression that was introduced in [1] by accidentally leaving out a line. 1: https://github.com/neovim/neovim/pull/12262
This commit is contained in:
parent
ef81999f4e
commit
993ca90c9b
@ -944,6 +944,9 @@ 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)
|
||||
|
Loading…
Reference in New Issue
Block a user