fix row key uniqueness of chained expansions, fix initial edit strings for value editing

This commit is contained in:
Ryan Fleury
2025-04-21 11:37:10 -07:00
parent 21a7126a57
commit 8dd334d754
2 changed files with 8 additions and 2 deletions
+4
View File
@@ -3100,6 +3100,10 @@ rd_view_ui(Rng2F32 rect)
{
any_edits_started = 1;
String8 string = cell->edit_string;
if(string.size == 0)
{
string = dr_string_from_fstrs(scratch.arena, &cell_info.fstrs);
}
string.size = Min(string.size, sizeof(ewv->dummy_text_edit_state.input_buffer));
RD_WatchPt pt = {row->block->key, row->key, rd_id_from_watch_cell(cell)};
U64 hash = ev_hash_from_key(pt.key);