summaryrefslogtreecommitdiff
path: root/rplugin
diff options
context:
space:
mode:
authorhiroebe <hiro.ebe.albirex12@gmail.com>2019-08-08 14:52:14 +0900
committerhiroebe <hiro.ebe.albirex12@gmail.com>2019-08-08 14:52:14 +0900
commit75b007d8413a3210e6cec15193e3d6fcfd281e4b (patch)
tree107213f6b0ba02fa67921114faca81a81bca781c /rplugin
parentd58f8f2686068080f123ad903b2113d6973250fb (diff)
downloaddeoplete.nvim-75b007d8413a3210e6cec15193e3d6fcfd281e4b.zip
Fix event name check
Diffstat (limited to 'rplugin')
-rw-r--r--rplugin/python3/deoplete/child.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rplugin/python3/deoplete/child.py b/rplugin/python3/deoplete/child.py
index bdbaa42..0cf1c6b 100644
--- a/rplugin/python3/deoplete/child.py
+++ b/rplugin/python3/deoplete/child.py
@@ -554,7 +554,7 @@ class Child(logger.LoggingMixin):
def _on_event(self, context: UserContext) -> None:
event = context['event']
for source_name, source in self._itersource(context):
- if source.events is None or event in source.events:
+ if not source.events or event in source.events:
try:
source.on_event(context)
except Exception as exc: