fix _open_lsp_location (#646)

This commit is contained in:
Prabir Shrestha
2020-01-01 11:58:31 -08:00
committed by GitHub
parent 189a3118b1
commit c347a80dfa

View File

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