mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-07 05:04:28 +08:00
Fix the completion start position regex matching being off by one
This commit is contained in:
@@ -72,7 +72,7 @@ function! ale#completion#OmniFunc(findstart, base) abort
|
||||
let l:line = b:ale_completion_info.line
|
||||
let l:column = b:ale_completion_info.column
|
||||
let l:regex = s:GetRegex(s:omni_start_map, &filetype)
|
||||
let l:up_to_column = getline(l:line)[: l:column - 1]
|
||||
let l:up_to_column = getline(l:line)[: l:column - 2]
|
||||
let l:match = matchstr(l:up_to_column, l:regex)
|
||||
|
||||
return l:column - len(l:match) - 1
|
||||
|
||||
Reference in New Issue
Block a user