Skip to content

Commit

Permalink
Fix async update
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Mar 12, 2018
1 parent 47b86cf commit 5c1dfc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rplugin/python3/deoplete/deoplete.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ def completion_begin(self, context):
in context['vars']):
self._vim.call('deoplete#mapping#_restore_completeopt')

# Check the previous completion
# Async update is skipped if same.
prev_candidates = context['vars'][
'deoplete#_prev_completion']['candidates']
if (context['event'] == 'Async' and
not prev_candidates and candidates == prev_candidates):
prev_candidates and candidates == prev_candidates):
return

# error(self._vim, candidates)
Expand Down

0 comments on commit 5c1dfc6

Please sign in to comment.