]> Sergey Matveev's repositories - vim-lsp.git/blobdiff - autoload/lsp/symbol.vim
Cursor not positioned correctly when jumping to a symbol in another file
[vim-lsp.git] / autoload / lsp / symbol.vim
index ae193877a398248f02c196fe4032716c39c2a9c3..081af96e34b29a8949485d66941bc33a6305c019 100644 (file)
@@ -124,7 +124,7 @@ def JumpToWorkspaceSymbol(cmdmods: string, popupID: number, result: number): voi
     # used so that the current location is added to the jump list.
     :normal m'
     setcursorcharpos(symTbl[result - 1].pos.line + 1,
-                    util.GetCharIdxWithoutCompChar(bnr,
+                    util.GetCharIdxWithoutCompChar(bufnr(),
                                                    symTbl[result - 1].pos) + 1)
   catch
     # ignore exceptions