diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-07-03 09:32:37 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-07-03 09:32:37 -0400 |
commit | 3d5d515aee889bc34b1be65d0ec4023fab613fcb (patch) | |
tree | 60cef657020633616692129c08789dafdb90eb7b /cmd2 | |
parent | 80950bfa4216ed20df5d63f1ebe63bac5b3746b4 (diff) | |
download | cmd2-git-3d5d515aee889bc34b1be65d0ec4023fab613fcb.tar.gz |
Fixed issue where wrong function was being set for Pyreadline's _display_completions
Diffstat (limited to 'cmd2')
-rw-r--r-- | cmd2/cmd2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index a10219b1..351af91d 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -3183,7 +3183,7 @@ class Cmd(cmd.Cmd): readline.set_completion_display_matches_hook(None) elif rl_type == RlType.PYREADLINE: # noinspection PyUnresolvedReferences - readline.rl.mode._display_completions = self._display_matches_pyreadline + readline.rl.mode._display_completions = orig_pyreadline_display # Save off the current completer and set a new one in the Python console # Make sure it tab completes from its locals() dictionary |