diff options
author | Azeem Bande-Ali <azeemba> | 2021-12-09 13:09:50 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-12-09 13:15:19 +0300 |
commit | b8bad3549dcef0b761708ef9cc1f814ebedb3106 (patch) | |
tree | 6a0ac31a732d6345cbd6c2a8da7c907fa15642ec /source/blender/functions | |
parent | 65de17ece4626ac38ee990948548fbe9bff2e283 (diff) |
Fix T93519: handle prefix names in autocompletes
Autocomplete entires keep track of the length of the prefix
in `name_prefix_offset`. However, the name matching logic
was comparing the string including the prefix which resulted
in tab-completion not working (when the user didn't also type
in the prefix, typically two whitespaces).
This is fixed by passing in a char pointer after the end of
the prefix.
Additionally, some searchbox logic is moved. Previously,
`ui_searchbox_apply` would clear the entry which would mean
that `ui_searchbox_find_index` would never succeed. Now the
search box is only cleared if no match was found.
Differential Revision: https://developer.blender.org/D13483
Diffstat (limited to 'source/blender/functions')
0 files changed, 0 insertions, 0 deletions