autoload/symbol.vim | 3 ++- diff --git a/autoload/symbol.vim b/autoload/symbol.vim index 812fe0284529a1ac8d4e2414dd1870db1d2fc6e3..2bdb062f6f8d037f481ccfe439bd3ff27b443c1c 100644 --- a/autoload/symbol.vim +++ b/autoload/symbol.vim @@ -261,6 +261,7 @@ # jump to the file and line containing the symbol var wid = fname->bufwinid() if wid != -1 wid->win_gotoid() + normal! m` else var bnr: number = fname->bufnr() if bnr != -1 @@ -278,9 +279,9 @@ else exe 'edit ' .. fname endif endif + setpos("'`", getcurpos()) endif # Set the previous cursor location mark - setpos("'`", getcurpos()) setcursorcharpos(location.range.start.line + 1, location.range.start.character + 1) endif