Skip to content

Commit

Permalink
Merge pull request #1001 from hiroebe/fix-if-condition
Browse files Browse the repository at this point in the history
Fix event name check
  • Loading branch information
Shougo authored Aug 11, 2019
2 parents d58f8f2 + 75b007d commit 153e242
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 153e242

Please sign in to comment.