Checks is_full_line only for commands with set newline_after_command_string
@@ -195,7 +195,8 @@ class CommandTextualGeneric(Command):
:param is_full_line: True if line ends with new line char, False otherwise.
:return: Nothing.
"""
- if is_full_line and self._regex_helper.search_compiled(self._cmd_escaped, line):
+ if (is_full_line and self.newline_after_command_string) or not self.newline_after_command_string:
+ if self._regex_helper.search_compiled(self._cmd_escaped, line):
self._cmd_output_started = True
def break_cmd(self):
