From d09d30c52c6222f5811f420ed46d0078bdad6a2b Mon Sep 17 00:00:00 2001 From: mathieui Date: Sat, 20 Mar 2021 21:01:23 +0100 Subject: [PATCH] fix: only call key_enter on commandinput in xmltab --- poezio/tabs/xmltab.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/poezio/tabs/xmltab.py b/poezio/tabs/xmltab.py index 15fd2ed4..aa2552c4 100644 --- a/poezio/tabs/xmltab.py +++ b/poezio/tabs/xmltab.py @@ -318,8 +318,9 @@ class XMLTab(Tab): def execute_slash_command(self, txt: str) -> bool: if txt.startswith('/'): - self.input.key_enter() - self.execute_command(txt) + if isinstance(self.input, windows.CommandInput): + self.input.key_enter() + self.execute_command(txt) return self.reset_help_message() def completion(self):