summaryrefslogtreecommitdiff
path: root/cmd2
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2019-07-03 09:32:37 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2019-07-03 09:32:37 -0400
commit3d5d515aee889bc34b1be65d0ec4023fab613fcb (patch)
tree60cef657020633616692129c08789dafdb90eb7b /cmd2
parent80950bfa4216ed20df5d63f1ebe63bac5b3746b4 (diff)
downloadcmd2-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.py2
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