diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2019-03-03 14:53:38 -0500 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2019-03-03 14:53:38 -0500 |
commit | 009cb87895c2e23521f2fe1b69252231fa010a5a (patch) | |
tree | d10fb3ae742fb20d3a9cbc6c0bad23da026d11d2 /cmd2/parsing.py | |
parent | 46df1c127e11ac59706e6656543d06621fd7bc1e (diff) | |
download | cmd2-git-009cb87895c2e23521f2fe1b69252231fa010a5a.tar.gz |
Potential fixes for outstanding multi-line issues in history command
Diffstat (limited to 'cmd2/parsing.py')
-rw-r--r-- | cmd2/parsing.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd2/parsing.py b/cmd2/parsing.py index 070d3774..90484d76 100644 --- a/cmd2/parsing.py +++ b/cmd2/parsing.py @@ -191,8 +191,8 @@ class Statement(str): def expanded_command_line(self) -> str: """Contains command_and_args plus any ending terminator, suffix, and redirection chars""" rtn = self.command_and_args - if self.terminator: - rtn += self.terminator + if self.multiline_command: + rtn += constants.MULTILINE_TERMINATOR if self.suffix: rtn += ' ' + self.suffix @@ -240,7 +240,7 @@ class StatementParser: ): self.allow_redirection = allow_redirection if terminators is None: - self.terminators = [';'] + self.terminators = [constants.MULTILINE_TERMINATOR] else: self.terminators = terminators if multiline_commands is None: |