diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-06-10 11:22:35 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-06-10 11:22:35 +0400 |
commit | 1f56eee95304e38b91e05cbb2e595948585b2f31 (patch) | |
tree | f6b0d9f511e765aa1a43f2c0a945d9e2a2e10458 /release/scripts/modules/console | |
parent | c8a654c41c877d082fd09f1050a787eb015191f4 (diff) |
fix [#27495] Incorrect result of image name autocompletion
Diffstat (limited to 'release/scripts/modules/console')
-rw-r--r-- | release/scripts/modules/console/intellisense.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/release/scripts/modules/console/intellisense.py b/release/scripts/modules/console/intellisense.py index 9352d7c14e1..00f7dbd3657 100644 --- a/release/scripts/modules/console/intellisense.py +++ b/release/scripts/modules/console/intellisense.py @@ -126,7 +126,14 @@ def expand(line, cursor, namespace, private=True): if len(matches) == 1: scrollback = '' else: - scrollback = ' '.join([m.split('.')[-1] for m in matches]) + # causes blender bug [#27495] since string keys may contain '.' + # scrollback = ' '.join([m.split('.')[-1] for m in matches]) + scrollback = ' '.join( + [m[len(word):] + if (word and m.startswith(word)) + else m.split('.')[-1] + for m in matches]) + no_calltip = True prefix = os.path.commonprefix(matches)[len(word):] if prefix: |