fix: only call key_enter on commandinput in xmltab

This commit is contained in:
mathieui 2021-03-20 21:01:23 +01:00
parent 9ab0d250f4
commit d09d30c52c

View file

@ -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):