diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-07-17 11:46:12 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-17 11:46:12 -0400 |
commit | 2b38463868b5acf9b1d64fb480aba683fe56d6d7 (patch) | |
tree | 4c4c61f08f3f3c7bf6b9031a42be79741ce9caf2 /cmd2/cmd2.py | |
parent | f77abb09888c6ea3f6d8dadb28de46c36f035459 (diff) | |
parent | 9e9d54851148bcac0524b7e70e30baa166d03441 (diff) | |
download | cmd2-git-2b38463868b5acf9b1d64fb480aba683fe56d6d7.tar.gz |
Merge pull request #725 from python-cmd2/autocomplete_fixes
Autocomplete fixes
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r-- | cmd2/cmd2.py | 2 |
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 |