summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
Diffstat (limited to 'cmd2.py')
-rwxr-xr-xcmd2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2.py b/cmd2.py
index 464d5827..c6f8ef3b 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -1546,7 +1546,7 @@ class Cmd(cmd.Cmd):
return subcommand_names
# noinspection PyUnusedLocal
- def _display_matches_gnu(self, substitution, matches, longest_match_length):
+ def _display_matches_gnu_readline(self, substitution, matches, longest_match_length):
"""
A custom completion match display function for use with GNU readline
:param substitution: the search text that was replaced
@@ -1604,7 +1604,7 @@ class Cmd(cmd.Cmd):
# GNU readline specific way to override the completions display function
if readline_lib:
- readline.set_completion_display_matches_hook(self._display_matches_gnu)
+ readline.set_completion_display_matches_hook(self._display_matches_gnu_readline)
# pyreadline specific way to override the completions display function
elif sys.platform.startswith('win'):