Fix T85514: exact match is not showing up in search menu
The `get_shortest_word_index_that_startswith` function was not doing what it was supposed to do. This resulted in wrong matches.
This commit is contained in:
parent
806b22d130
commit
40a1861265
Notes:
blender-bot
2023-02-13 19:37:41 +01:00
Referenced by issue #85514, regression: After first search field is prefilled with full path to operator/option and it is not re-executable
|
@ -259,6 +259,7 @@ static int get_shortest_word_index_that_startswith(StringRef query,
|
|||
if (word.startswith(query)) {
|
||||
if (word.size() < best_word_size) {
|
||||
best_word_index = i;
|
||||
best_word_size = word.size();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue