diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-05-06 10:12:04 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-06 10:12:04 -0400 |
commit | 91e271013c8580f3308d593c2d3224ecf00d8b2f (patch) | |
tree | 433ab996f0134fdf5b327ea396e69ce850e93378 /cmd2/parsing.py | |
parent | 4ebcf42f7fe51216019699b1a9edf2af4f3cb7b6 (diff) | |
parent | f6e7d85cb3cd36e566bbd9c6c4178f70afc4acd7 (diff) | |
download | cmd2-git-91e271013c8580f3308d593c2d3224ecf00d8b2f.tar.gz |
Merge pull request #674 from python-cmd2/terminator_error
Fixed issue where the wrong terminator was being appended by expanded_command_line()
Diffstat (limited to 'cmd2/parsing.py')
-rw-r--r-- | cmd2/parsing.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cmd2/parsing.py b/cmd2/parsing.py index 2af8a207..a9e1a52f 100644 --- a/cmd2/parsing.py +++ b/cmd2/parsing.py @@ -201,9 +201,7 @@ 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.multiline_command: - rtn += constants.MULTILINE_TERMINATOR - elif self.terminator: + if self.terminator: rtn += self.terminator if self.suffix: |