Blender Git Commit Log

Git Commits -> Revision b8bad35

Revision b8bad35 by Azeem Bande-Ali (master)
December 9, 2021, 10:15 (GMT)
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

Commit Details:

Full Hash: b8bad3549dcef0b761708ef9cc1f814ebedb3106
Parent Commit: 65de17e
Committed By: Jacques Lucke
Lines Changed: +7, -8

2 Modified Paths:

/source/blender/editors/interface/interface_handlers.c (+6, -0) (Diff)
/source/blender/editors/interface/interface_region_search.cc (+1, -8) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021