summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-03-20 21:01:23 +0100
committermathieui <mathieui@mathieui.net>2021-04-02 17:44:36 +0200
commitd09d30c52c6222f5811f420ed46d0078bdad6a2b (patch)
treeb3de88ff61f1210cfa1dab937842af4bd7c4be40
parent9ab0d250f4c1a7c9d525518076973c8f42bf8a70 (diff)
downloadpoezio-d09d30c52c6222f5811f420ed46d0078bdad6a2b.tar.gz
poezio-d09d30c52c6222f5811f420ed46d0078bdad6a2b.tar.bz2
poezio-d09d30c52c6222f5811f420ed46d0078bdad6a2b.tar.xz
poezio-d09d30c52c6222f5811f420ed46d0078bdad6a2b.zip
fix: only call key_enter on commandinput in xmltab
-rw-r--r--poezio/tabs/xmltab.py5
1 files 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):