aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormeredith <merrilymeredith@users.noreply.github.com>2023-03-23 02:27:53 -0500
committerGitHub <noreply@github.com>2023-03-23 08:27:53 +0100
commitea0b66d208dbcd5d5c0a17810596d769c7a0b6dd (patch)
treef3558d74431c85127f4ff1f8e6ff0e86e6d52fbb
parent410dc3349f071d16c7a05e3aa628152bf724ee72 (diff)
downloadrneovim-ea0b66d208dbcd5d5c0a17810596d769c7a0b6dd.tar.gz
rneovim-ea0b66d208dbcd5d5c0a17810596d769c7a0b6dd.tar.bz2
rneovim-ea0b66d208dbcd5d5c0a17810596d769c7a0b6dd.zip
fix(lsp): Jump to tag locations reliably when :ltag is used (#22750)
-rw-r--r--runtime/lua/vim/lsp/tagfunc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp/tagfunc.lua b/runtime/lua/vim/lsp/tagfunc.lua
index 49029f8599..eb25b67db9 100644
--- 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