diff options
author | mathieui <mathieui@mathieui.net> | 2015-11-04 22:50:38 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2015-11-04 22:50:38 +0100 |
commit | d52fe4c23efbd638afc3769a86b7050456b3eb2c (patch) | |
tree | 9e8ad656254d4e91fde8ab00c0921a924c72a734 /src/tabs | |
parent | e464c24b4991ba753320d939e39524bf7ff3264a (diff) | |
download | poezio-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
Diffstat (limited to 'src/tabs')
-rw-r--r-- | src/tabs/basetabs.py | 3 |
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: |