diff --git a/autoload/lsp/utils/buffer.vim b/autoload/lsp/utils/buffer.vim index 65862cdc..b20d44f0 100644 --- a/autoload/lsp/utils/buffer.vim +++ b/autoload/lsp/utils/buffer.vim @@ -45,8 +45,8 @@ function! lsp#utils#buffer#_open_lsp_location(location) abort let l:path = lsp#utils#uri_to_path(a:location['uri']) let l:bufnr = bufnr(l:path) - let [l:start_line, l:start_col] = lsp#utils#position#lsp_to_vim(l:bufnr, a:location['range']['start']) - let [l:end_line, l:end_col] = lsp#utils#position#lsp_to_vim(l:bufnr, a:location['range']['end']) + let [l:start_line, l:start_col] = lsp#utils#position#_lsp_to_vim(l:bufnr, a:location['range']['start']) + let [l:end_line, l:end_col] = lsp#utils#position#_lsp_to_vim(l:bufnr, a:location['range']['end']) normal! m' if &modified && !&hidden