summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
diff options
context:
space:
mode:
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r--cmd2/cmd2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index ea3d32d2..cad91f9d 100644
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -2031,14 +2031,14 @@ class Cmd(cmd.Cmd):
# Deal with the vagaries of readline and ANSI escape codes
safe_prompt = rl_make_safe_prompt(prompt)
- # Check if tab completion should be disabled
with self.sigint_protection:
+ # Check if tab completion should be disabled
if not allow_completion:
disable_completion()
line = input(safe_prompt)
finally:
- # Check if we need to reenable tab completion
with self.sigint_protection:
+ # Check if we need to re-enable tab completion
if not allow_completion:
enable_completion()
else: