summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShougo Matsushita <Shougo.Matsu@gmail.com>2017-05-09 08:34:04 +0900
committerShougo Matsushita <Shougo.Matsu@gmail.com>2017-05-09 08:34:04 +0900
commitc202045a12820ee3bda81889295651241289c967 (patch)
tree0992bb867c8f79297b42033fee1a8b55810f7e5b
parenta2ed3d7d664c6e609f63d54271313bedecddeff7 (diff)
downloaddeoplete.nvim-c202045a12820ee3bda81889295651241289c967.zip
Fix #478 remove cache if not found
-rw-r--r--rplugin/python3/deoplete/deoplete.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/rplugin/python3/deoplete/deoplete.py b/rplugin/python3/deoplete/deoplete.py
index ad962ef..91ec937 100644
--- a/rplugin/python3/deoplete/deoplete.py
+++ b/rplugin/python3/deoplete/deoplete.py
@@ -96,6 +96,8 @@ class Deoplete(logger.LoggingMixin):
source.min_pattern_length,
source.max_pattern_length,
source.input_pattern):
+ if source.name in self._prev_results:
+ self._prev_results.pop(source.name)
# Skip
continue