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

This commit is contained in:
meredith
2023-03-23 02:27:53 -05:00
committed by GitHub
parent 410dc3349f
commit ea0b66d208

View File

@@ -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