summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
diff options
context:
space:
mode:
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r--cmd2/cmd2.py1
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