Commit d52fe4c2 authored by mathieui's avatar mathieui

Don’t always reset the completion on command execution

e.g. if there is nothing to reset
parent e464c24b
......@@ -290,7 +290,8 @@ class Tab(object):
else:
arg = xhtml.clean_text_simple(arg)
if func:
self.input.reset_completion()
if hasattr(self.input, "reset_completion"):
self.input.reset_completion()
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