diff options
author | w0rp <devw0rp@gmail.com> | 2017-08-04 16:15:48 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-08-04 16:15:48 +0100 |
commit | 666cfc6ee29d2bcd36a45f4ca7aa77899b2904d4 (patch) | |
tree | baef45ebfad6ffcfda2453fbdbb3b236e41d5f02 /autoload | |
parent | 9ac74c44fea3e1529f4d6a4cd46a5efa20ec64f4 (diff) | |
download | ale-666cfc6ee29d2bcd36a45f4ca7aa77899b2904d4.zip |
Fix the completion start position regex matching being off by one
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/completion.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/ale/completion.vim b/autoload/ale/completion.vim index 66c20565..eac6e6fc 100644 --- a/autoload/ale/completion.vim +++ b/autoload/ale/completion.vim @@ -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 |