Commit 93c44850 authored by mathieui's avatar mathieui Committed by Link Mauve

basetabs: wrap coroutine commands in ensure_future

parent 695b2ee0
......@@ -324,6 +324,9 @@ class Tab:
if func:
if hasattr(self.input, "reset_completion"):
self.input.reset_completion()
if asyncio.iscoroutinefunction(func):
asyncio.ensure_future(func(arg))
else:
func(arg)
return True
else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment