fix expansion rule picking

This commit is contained in:
Ryan Fleury
2024-09-27 10:08:49 -07:00
parent 4b7e6d7113
commit 3d781f847e
@@ -589,7 +589,7 @@ ev2_block_tree_from_expr(Arena *arena, EV_View *view, String8 filter, String8 st
for(EV_ViewRuleNode *n = t->view_rules->first; n != 0; n = n->next)
{
EV_ViewRuleInfo *info = ev_view_rule_info_from_string(n->v.root->string);
if(info->expr_expand_info != 0)
if(info->expr_expand_info != 0 && info->expr_expand_info != EV_VIEW_RULE_EXPR_EXPAND_INFO_FUNCTION_NAME(nil))
{
expand_view_rule_info = info;
expand_params = n->v.root;