summaryrefslogtreecommitdiff
path: root/rplugin/python3/deoplete
diff options
context:
space:
mode:
Diffstat (limited to 'rplugin/python3/deoplete')
-rw-r--r--rplugin/python3/deoplete/sources/ale.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/rplugin/python3/deoplete/sources/ale.py b/rplugin/python3/deoplete/sources/ale.py
index ae1f4039..82d9bbf2 100644
--- a/rplugin/python3/deoplete/sources/ale.py
+++ b/rplugin/python3/deoplete/sources/ale.py
@@ -49,12 +49,13 @@ class Source(Base):
if event == 'Async':
result = self.vim.call('ale#completion#GetCompletionResult')
+
return result or []
if context.get('is_refresh'):
self.vim.command(
- "call ale#completion#GetCompletions('ale-callback', " + \
- "{'callback': {completions -> deoplete#auto_complete() }})"
+ "call ale#completion#GetCompletions('ale-callback', "
+ + "{'callback': {completions -> deoplete#auto_complete() }})"
)
return []