mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-11-30 17:43:20 -08:00
tab/text-pt/text-range filtered commands, hook up to right-click menus
This commit is contained in:
1 parent
0470b646cd
commit
b59528edea
7 files changed
+456
-449
No files matched your search
@@ -2156,17 +2156,16 @@ rd_code_slice(RD_CodeSliceParams *params, TxtPt *cursor, TxtPt *mark, S64 *prefe
|
||||
vaddr = params->line_vaddrs[cursor->line - params->line_num_range.min];
|
||||
lines = params->line_infos[cursor->line - params->line_num_range.min];
|
||||
}
|
||||
#if 0 // TODO(rjf): @cfg
|
||||
rd_cmd(RD_CmdKind_PushQuery,
|
||||
.reg_slot = RD_RegSlot_Cursor,
|
||||
.ui_key = ui_get_selected_state()->root->key,
|
||||
.off_px = sub_2f32(ui_mouse(), v2f32(2, 2)),
|
||||
.cursor = *cursor,
|
||||
.mark = *mark,
|
||||
.vaddr = vaddr,
|
||||
.lines = lines,
|
||||
.lister_flags= RD_ListerFlag_LineEdit|RD_ListerFlag_Settings|RD_ListerFlag_Commands);
|
||||
#endif
|
||||
.expr = txt_pt_match(*cursor, *mark) ? str8_lit("query:text_pt_commands") : str8_lit("query:text_range_commands"),
|
||||
.do_implicit_root = 1,
|
||||
.do_lister = 1,
|
||||
.ui_key = ui_get_selected_state()->root->key,
|
||||
.off_px = ui_mouse(),
|
||||
.cursor = *cursor,
|
||||
.mark = *mark,
|
||||
.vaddr = vaddr,
|
||||
.lines = lines);
|
||||
}
|
||||
|
||||
//- rjf: dragging threads, breakpoints, or watch pins over this slice ->
|
||||
|
||||
Reference in new issue
Block a user