mirror of
https://github.com/dense-analysis/ale.git
synced 2026-02-10 11:41:35 +08:00
Fix :ALEImport column position
Fix :ALEImport column position so it works with more language servers. Co-authored-by: w0rp <devw0rp@gmail.com>
This commit is contained in:
@@ -911,7 +911,8 @@ function! ale#completion#Import() abort
|
||||
endif
|
||||
|
||||
let [l:line, l:column] = getpos('.')[1:2]
|
||||
let l:column = searchpos('\V' . escape(l:word, '/\'), 'bn', l:line)[1]
|
||||
let l:column = searchpos('\V' . escape(l:word, '/\'), 'bnc', l:line)[1]
|
||||
let l:column = l:column + len(l:word) - 1
|
||||
|
||||
if l:column isnot 0
|
||||
let l:started = ale#completion#GetCompletions('ale-import', {
|
||||
|
||||
Reference in New Issue
Block a user