summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2020-02-18 15:27:11 -0500
committerKevin Van Brunt <kmvanbrunt@gmail.com>2020-02-18 15:27:11 -0500
commit34ce17c95fae0a849cd90de2e65cd454b9fe51cb (patch)
treed14b6c335ee6f5bfa6fbb2d509846cdbff23e98c /cmd2/cmd2.py
parentfb118b9fad6a5916c3264568873a77bb03cb4229 (diff)
downloadcmd2-git-34ce17c95fae0a849cd90de2e65cd454b9fe51cb.tar.gz
Redrawing the prompt when an exception occurs during tab completion
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 caeb4ab0..0bb4921e 100644
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -1429,6 +1429,7 @@ class Cmd(cmd.Cmd):
# Insert a newline so the exception doesn't print in the middle of the command line being tab completed
self.perror()
self.pexcept(e)
+ rl_force_redisplay()
return None
def _autocomplete_default(self, text: str, line: str, begidx: int, endidx: int, *,