Fix bug in adds context decorator missing content

The words parameter is now passed to the set_context method as intended.
pull/2577/head
Åke Forslund 2020-05-08 12:31:54 +02:00
parent 5caf415a15
commit 2036bbb63c
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ def adds_context(context, words=''):
@wraps(func)
def func_wrapper(*args, **kwargs):
ret = func(*args, **kwargs)
args[0].set_context(context)
args[0].set_context(context, words)
return ret
return func_wrapper
return context_add_decorator