From 09a047feee7df68a19393da1117d950bd516385a Mon Sep 17 00:00:00 2001 From: Ryan Fleury Date: Fri, 27 Jun 2025 12:36:27 -0700 Subject: [PATCH] zero match store dbgi/idx selection info if params hash has changed; we can still return the section kind (e.g. for syntax highlighting), but we no longer want to try to refer to any specific debug info slot, since it may have been evicted. --- src/dbgi/dbgi.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/dbgi/dbgi.c b/src/dbgi/dbgi.c index 1070860d..d061096c 100644 --- a/src/dbgi/dbgi.c +++ b/src/dbgi/dbgi.c @@ -1757,6 +1757,11 @@ di_match_from_name(DI_MatchStore *store, String8 name, U64 endt_us) // rjf: return node present info result = node->primary_match; + if(node->cmp_params_hash != store->params_hash) + { + result.dbgi_idx = 0; + result.idx = 0; + } } return result; }