summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2018-04-15 01:06:29 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2018-04-15 01:06:29 -0400
commit3140fe01ea00a50bdb48b17bca0c5dc513c2ca70 (patch)
tree55fdad89410e42323db0d6aa96e7f575aa9a077c /cmd2.py
parent4233570973e12b0a850415e05aee9912cf3e2cd3 (diff)
downloadcmd2-git-3140fe01ea00a50bdb48b17bca0c5dc513c2ca70.tar.gz
Updated comments and examples
Diffstat (limited to 'cmd2.py')
-rwxr-xr-xcmd2.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd2.py b/cmd2.py
index 5bfef5a9..2403cd75 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -2096,6 +2096,7 @@ class Cmd(cmd.Cmd):
common_prefix = os.path.commonprefix(self.completion_matches)
if matches_delimited:
+ # Check if any of the display matches are part of the tab completion text
display_prefix = os.path.commonprefix(self.display_matches)
# For delimited matches, we check what appears before the display