summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2019-07-17 17:29:12 -0400
committerGitHub <noreply@github.com>2019-07-17 17:29:12 -0400
commitab5a11c4e355248545c392682f378d2652ecf999 (patch)
tree3e99170b4fc6f424f46777f2af59fe79fe641b66 /cmd2/cmd2.py
parent2b38463868b5acf9b1d64fb480aba683fe56d6d7 (diff)
parentbb2cee07c7fd701b3e817639ff16fb240406ad36 (diff)
downloadcmd2-git-ab5a11c4e355248545c392682f378d2652ecf999.tar.gz
Merge pull request #728 from python-cmd2/history_fix
Fixed bug where was sometimes showing raw and expanded commands when they weren't different
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r--cmd2/cmd2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index 9e5f5d56..c8f2f9ff 100644
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -2204,7 +2204,7 @@ class Cmd(cmd.Cmd):
else:
line = 'eof'
- return line.strip()
+ return line.rstrip('\r\n')
def _cmdloop(self) -> None:
"""Repeatedly issue a prompt, accept input, parse an initial prefix