From 5c1dfc6642e9bf82ad5d8352ae84e4c51a9c8b47 Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Mon, 12 Mar 2018 20:27:51 +0900 Subject: [PATCH] Fix async update --- rplugin/python3/deoplete/deoplete.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rplugin/python3/deoplete/deoplete.py b/rplugin/python3/deoplete/deoplete.py index 24e43bb1..21b307e7 100644 --- a/rplugin/python3/deoplete/deoplete.py +++ b/rplugin/python3/deoplete/deoplete.py @@ -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)