From 34ce17c95fae0a849cd90de2e65cd454b9fe51cb Mon Sep 17 00:00:00 2001 From: Kevin Van Brunt Date: Tue, 18 Feb 2020 15:27:11 -0500 Subject: Redrawing the prompt when an exception occurs during tab completion --- cmd2/cmd2.py | 1 + 1 file changed, 1 insertion(+) (limited to 'cmd2') 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, *, -- cgit v1.2.1