From d52fe4c23efbd638afc3769a86b7050456b3eb2c Mon Sep 17 00:00:00 2001 From: mathieui Date: Wed, 4 Nov 2015 22:50:38 +0100 Subject: =?UTF-8?q?Don=E2=80=99t=20always=20reset=20the=20completion=20on?= =?UTF-8?q?=20command=20execution?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit e.g. if there is nothing to reset --- src/tabs/basetabs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/tabs') 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: -- cgit v1.2.3