store successful queries keyed by target section as well, to avoid different table evals having different success states - fixes autocomplete flicker

This commit is contained in:
Ryan Fleury
2025-10-07 16:57:05 -07:00
parent d2feaa5f56
commit 7ff5764696
+2 -1
View File
@@ -1653,11 +1653,12 @@ E_TYPE_EXPAND_INFO_FUNCTION_DEF(debug_info_table)
B32 stale = 0;
accel->section = section;
accel->items = di_search_item_array_from_target_query(rd_state->frame_access, section, filter, endt_us, &stale);
RD_Cfg *last_successful_query_cfg = rd_immediate_cfg_from_keyf("last_successful_query_%I64x", rd_regs()->view);
RD_Cfg *last_successful_query_cfg = rd_immediate_cfg_from_keyf("last_successful_query_%I64x_%I64u", rd_regs()->view, (U64)section);
if(stale)
{
String8 last_query = last_successful_query_cfg->first->string;
accel->items = di_search_item_array_from_target_query(rd_state->frame_access, section, last_query, endt_us, 0);
rd_request_frame();
}
else
{