summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2018-03-21 00:47:38 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2018-03-21 00:47:38 -0400
commitf4570b6a3c13304f12e4319b4bf97dbe4f64305d (patch)
tree49da72210c2915ab83d1c35f2ebfcf4d7d5bd566 /cmd2.py
parentd907c7758da0f7671c6378c1cb6138ae807b9bc1 (diff)
downloadcmd2-git-f4570b6a3c13304f12e4319b4bf97dbe4f64305d.tar.gz
Renamed a function
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'):