diff options
author | hiroebe <hiro.ebe.albirex12@gmail.com> | 2019-08-08 14:52:14 +0900 |
---|---|---|
committer | hiroebe <hiro.ebe.albirex12@gmail.com> | 2019-08-08 14:52:14 +0900 |
commit | 75b007d8413a3210e6cec15193e3d6fcfd281e4b (patch) | |
tree | 107213f6b0ba02fa67921114faca81a81bca781c /rplugin | |
parent | d58f8f2686068080f123ad903b2113d6973250fb (diff) | |
download | deoplete.nvim-75b007d8413a3210e6cec15193e3d6fcfd281e4b.zip |
Fix event name check
Diffstat (limited to 'rplugin')
-rw-r--r-- | rplugin/python3/deoplete/child.py | 2 |
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: |