summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2015-11-04 22:50:38 +0100
committermathieui <mathieui@mathieui.net>2015-11-04 22:50:38 +0100
commitd52fe4c23efbd638afc3769a86b7050456b3eb2c (patch)
tree9e8ad656254d4e91fde8ab00c0921a924c72a734
parente464c24b4991ba753320d939e39524bf7ff3264a (diff)
downloadpoezio-d52fe4c23efbd638afc3769a86b7050456b3eb2c.tar.gz
poezio-d52fe4c23efbd638afc3769a86b7050456b3eb2c.tar.bz2
poezio-d52fe4c23efbd638afc3769a86b7050456b3eb2c.tar.xz
poezio-d52fe4c23efbd638afc3769a86b7050456b3eb2c.zip
Don’t always reset the completion on command execution
e.g. if there is nothing to reset
-rw-r--r--src/tabs/basetabs.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tabs/basetabs.py b/src/tabs/basetabs.py
index d54d4578..7e122985 100644
--- a/src/tabs/basetabs.py
+++ b/src/tabs/basetabs.py
@@ -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: