diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-05-06 03:22:21 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-05-06 03:22:21 -0400 |
commit | f6e7d85cb3cd36e566bbd9c6c4178f70afc4acd7 (patch) | |
tree | 433ab996f0134fdf5b327ea396e69ce850e93378 /cmd2/parsing.py | |
parent | 4ebcf42f7fe51216019699b1a9edf2af4f3cb7b6 (diff) | |
download | cmd2-git-f6e7d85cb3cd36e566bbd9c6c4178f70afc4acd7.tar.gz |
Fixed issue where the wrong terminator was being appended by Statement.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: |