From 3929abc3538db6e1b5958acc5f07cdad4345f86d Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Fri, 2 Dec 2016 08:13:50 +0900 Subject: [PATCH] Fix #360 neosnippet source --- rplugin/python3/deoplete/sources/neosnippet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rplugin/python3/deoplete/sources/neosnippet.py b/rplugin/python3/deoplete/sources/neosnippet.py index 8a3c9a6..0b6b278 100644 --- a/rplugin/python3/deoplete/sources/neosnippet.py +++ b/rplugin/python3/deoplete/sources/neosnippet.py @@ -43,6 +43,6 @@ class Source(Base): candidate['menu'] = candidate['menu_abbr'] def gather_candidates(self, context): - if not self.__cache: + if context['filetype'] not in self.__cache: self.on_event(context) return self.__cache.get(context['filetype'], [])