diff options
Diffstat (limited to 'source/blender/editors/interface/interface_region_search.c')
-rw-r--r-- | source/blender/editors/interface/interface_region_search.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface_region_search.c b/source/blender/editors/interface/interface_region_search.c index 34bbb644ef7..68be08ef4f8 100644 --- a/source/blender/editors/interface/interface_region_search.c +++ b/source/blender/editors/interface/interface_region_search.c @@ -555,6 +555,7 @@ static void ui_searchbox_region_draw_cb(const bContext *C, ARegion *region) char *name = data->items.names[a]; int icon = data->items.icons[a]; char *name_sep_test = NULL; + const bool use_sep_char = data->use_sep || (state & UI_BUT_HAS_SEP_CHAR); ui_searchbox_butrect(&rect, data, a); @@ -563,7 +564,7 @@ static void ui_searchbox_region_draw_cb(const bContext *C, ARegion *region) !(name_sep_test = strstr(data->items.names[a], data->sep_string))) { /* Simple menu item. */ - ui_draw_menu_item(&data->fstyle, &rect, name, icon, state, data->use_sep, NULL); + ui_draw_menu_item(&data->fstyle, &rect, name, icon, state, use_sep_char, NULL); } else { /* Split menu item, faded text before the separator. */ @@ -590,7 +591,7 @@ static void ui_searchbox_region_draw_cb(const bContext *C, ARegion *region) /* The previous menu item draws the active selection. */ ui_draw_menu_item( - &data->fstyle, &rect, name_sep, icon, state & ~UI_ACTIVE, data->use_sep, NULL); + &data->fstyle, &rect, name_sep, icon, state & ~UI_ACTIVE, use_sep_char, NULL); } } /* indicate more */ |