Fix #2330 - Do not use getcurpos() to avoid changing curswant

This commit is contained in:
w0rp
2019-03-07 12:28:36 +00:00
parent 6aef52f026
commit 5505f2323d
11 changed files with 19 additions and 19 deletions

View File

@@ -113,7 +113,7 @@ function! ale#references#Find(...) abort
endif
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('s:OnReady', [l:line, l:column, l:options])