diff options
Diffstat (limited to 'rplugin/python3/deoplete')
-rw-r--r-- | rplugin/python3/deoplete/sources/ale.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/rplugin/python3/deoplete/sources/ale.py b/rplugin/python3/deoplete/sources/ale.py index 98c463e0..653bc4fc 100644 --- a/rplugin/python3/deoplete/sources/ale.py +++ b/rplugin/python3/deoplete/sources/ale.py @@ -27,8 +27,10 @@ class Source(Base): self.input_pattern = r'(\.|::|->)\w*$' # Returns an integer for the start position, as with omnifunc. - def get_completion_position(self): - return self.vim.call('ale#completion#GetCompletionPosition') + def get_complete_position(self, context): + return self.vim.call( + 'ale#completion#GetCompletionPositionForDeoplete', context['input'] + ) def gather_candidates(self, context): # Stop early if ALE can't provide completion data for this buffer. |