summaryrefslogtreecommitdiff
path: root/rplugin/python3/deoplete/deoplete.py
diff options
context:
space:
mode:
Diffstat (limited to 'rplugin/python3/deoplete/deoplete.py')
-rw-r--r--rplugin/python3/deoplete/deoplete.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rplugin/python3/deoplete/deoplete.py b/rplugin/python3/deoplete/deoplete.py
index bc36a12..a33806c 100644
--- a/rplugin/python3/deoplete/deoplete.py
+++ b/rplugin/python3/deoplete/deoplete.py
@@ -102,8 +102,8 @@ class Deoplete(logger.LoggingMixin):
# Async update is skipped if same.
prev_completion = self._vim.vars['deoplete#_prev_completion']
prev_candidates = prev_completion['candidates']
- if (context['event'] == 'Async' and
- context['event'] == prev_completion['event'] and
+ event = context['event']
+ if (event == 'Async' or event == 'Update' and
prev_candidates and len(candidates) <= len(prev_candidates)):
return