Skip to content

Commit

Permalink
Fix event name check
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroebe committed Aug 8, 2019
1 parent d58f8f2 commit 75b007d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rplugin/python3/deoplete/child.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ def _set_source_attributes(self, context: UserContext) -> None:
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:
Expand Down

0 comments on commit 75b007d

Please sign in to comment.