mirror of
https://github.com/dense-analysis/ale.git
synced 2026-02-24 02:29:12 +08:00
Fix #2330 - Do not use getcurpos() to avoid changing curswant
This commit is contained in:
@@ -104,7 +104,7 @@ endfunction
|
||||
|
||||
function! s:GoToLSPDefinition(linter, options, capability) abort
|
||||
let l:buffer = bufnr('')
|
||||
let [l:line, l:column] = getcurpos()[1:2]
|
||||
let [l:line, l:column] = getpos('.')[1:2]
|
||||
let l:column = min([l:column, len(getline(l:line))])
|
||||
|
||||
let l:Callback = function(
|
||||
|
||||
Reference in New Issue
Block a user