From e1dc7637ab99bedaafa421b7fd499ed6302008f1 Mon Sep 17 00:00:00 2001 From: Kevin Van Brunt Date: Mon, 17 Feb 2020 14:25:32 -0500 Subject: Updated unit test --- cmd2/cmd2.py | 1 + 1 file changed, 1 insertion(+) (limited to 'cmd2/cmd2.py') 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 -- cgit v1.2.1