diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2020-02-17 14:25:32 -0500 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2020-02-17 14:25:32 -0500 |
commit | e1dc7637ab99bedaafa421b7fd499ed6302008f1 (patch) | |
tree | f168cec42dd44b7e5d80b2d301fbb5e9da2560a8 /cmd2/cmd2.py | |
parent | d80b27f8e259ffe3b14cef88e8ed9cde350ba397 (diff) | |
download | cmd2-git-e1dc7637ab99bedaafa421b7fd499ed6302008f1.tar.gz |
Updated unit test
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r-- | cmd2/cmd2.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index f4e1ef8d..49273b51 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -1419,6 +1419,7 @@ class Cmd(cmd.Cmd): except CompletionError as e: err_str = str(e) if err_str: + # Don't print error and redraw the prompt unless the error has length ansi.style_aware_write(sys.stdout, err_str + '\n') rl_force_redisplay() return None |