diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-11-17 00:53:42 -0500 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-11-17 00:53:42 -0500 |
commit | b7b179a87623409e031753e0c0c9827251cf75ef (patch) | |
tree | 23f2d192dbb92d0cc4ee989ef74d3011a9764b06 /cmd2 | |
parent | 42cc988127aace0b07baae4f2c52befb90078f93 (diff) | |
download | cmd2-git-b7b179a87623409e031753e0c0c9827251cf75ef.tar.gz |
Updating unit tests
Diffstat (limited to 'cmd2')
-rw-r--r-- | cmd2/cmd2.py | 4 |
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: |