diff options
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 |