summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2019-07-17 12:21:06 -0400
committerGitHub <noreply@github.com>2019-07-17 12:21:06 -0400
commit4216b823cefe2386c4ea25e2099b99372e6471ee (patch)
tree5c434a1f55ea102f295ab5e7b3761cd3c4ba0cb6 /cmd2/cmd2.py
parent08f43bf2ff9f810041eb1113f2a543395cc3ea4a (diff)
parent2b38463868b5acf9b1d64fb480aba683fe56d6d7 (diff)
downloadcmd2-git-4216b823cefe2386c4ea25e2099b99372e6471ee.tar.gz
Merge branch 'master' into integrate_legacy_documentation
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r--cmd2/cmd2.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index 0255d1ce..9e5f5d56 100644
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -1576,6 +1576,8 @@ class Cmd(cmd.Cmd):
try:
return self._complete_worker(text, state)
except Exception as e:
+ # Insert a newline so the exception doesn't print in the middle of the command line being tab completed
+ self.perror('\n', end='')
self.pexcept(e)
return None