Don’t always reset the completion on command execution
e.g. if there is nothing to reset
This commit is contained in:
parent
e464c24b49
commit
d52fe4c23e
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue