Don’t always reset the completion on command execution

e.g. if there is nothing to reset
This commit is contained in:
mathieui 2015-11-04 22:50:38 +01:00
parent e464c24b49
commit d52fe4c23e

View file

@ -290,6 +290,7 @@ class Tab(object):
else:
arg = xhtml.clean_text_simple(arg)
if func:
if hasattr(self.input, "reset_completion"):
self.input.reset_completion()
func(arg)
return True