fix go-to-source

This commit is contained in:
Ryan Fleury
2024-10-08 17:08:02 -07:00
parent 05045c8db0
commit 8d0267395a
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -149,6 +149,7 @@ d_line_list_copy(Arena *arena, D_LineList *list)
{
D_LineNode *dst_n = push_array(arena, D_LineNode, 1);
MemoryCopyStruct(dst_n, src_n);
dst_n->v.file_path = push_str8_copy(arena, dst_n->v.file_path);
dst_n->v.dbgi_key = di_key_copy(arena, &src_n->v.dbgi_key);
SLLQueuePush(dst.first, dst.last, dst_n);
dst.count += 1;
+3 -1
View File
@@ -3818,7 +3818,9 @@ rd_window_frame(RD_Window *ws)
{
rd_cmd(RD_CmdKind_FindCodeLocation,
.file_path = lines.first->v.file_path,
.cursor = lines.first->v.pt);
.cursor = lines.first->v.pt,
.vaddr = 0,
.process = ctrl_handle_zero());
}
ui_ctx_menu_close();
}