neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit ea0b66d208dbcd5d5c0a17810596d769c7a0b6dd
parent 410dc3349f071d16c7a05e3aa628152bf724ee72
Author: meredith <merrilymeredith@users.noreply.github.com>
Date:   Thu, 23 Mar 2023 02:27:53 -0500

fix(lsp): Jump to tag locations reliably when :ltag is used (#22750)


Diffstat:
Mruntime/lua/vim/lsp/tagfunc.lua | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/runtime/lua/vim/lsp/tagfunc.lua b/runtime/lua/vim/lsp/tagfunc.lua @@ -9,7 +9,7 @@ local function mk_tag_item(name, range, uri, offset_encoding) return { name = name, filename = vim.uri_to_fname(uri), - cmd = string.format('call cursor(%d, %d)|', range.start.line + 1, byte), + cmd = string.format([[/\%%%dl\%%%dc/]], range.start.line + 1, byte), } end