forked from bartvdbraak/blender
fix [#27495] Incorrect result of image name autocompletion
This commit is contained in:
parent
c8a654c41c
commit
1f56eee953
@ -126,7 +126,14 @@ def expand(line, cursor, namespace, private=True):
|
|||||||
if len(matches) == 1:
|
if len(matches) == 1:
|
||||||
scrollback = ''
|
scrollback = ''
|
||||||
else:
|
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
|
no_calltip = True
|
||||||
prefix = os.path.commonprefix(matches)[len(word):]
|
prefix = os.path.commonprefix(matches)[len(word):]
|
||||||
if prefix:
|
if prefix:
|
||||||
|
Loading…
Reference in New Issue
Block a user