mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-06 13:58:40 +00:00
fix file-path-parameterized commands w/ ipc
This commit is contained in:
@@ -11295,14 +11295,18 @@ rd_regs_fill_slot_from_string(RD_RegSlot slot, String8 string)
|
|||||||
{
|
{
|
||||||
default:
|
default:
|
||||||
case RD_RegSlot_String:
|
case RD_RegSlot_String:
|
||||||
{
|
|
||||||
rd_regs()->string = push_str8_copy(rd_frame_arena(), string);
|
|
||||||
}break;
|
|
||||||
case RD_RegSlot_FilePath:
|
case RD_RegSlot_FilePath:
|
||||||
{
|
{
|
||||||
String8TxtPtPair pair = str8_txt_pt_pair_from_string(string);
|
String8TxtPtPair pair = str8_txt_pt_pair_from_string(string);
|
||||||
rd_regs()->file_path = push_str8_copy(rd_frame_arena(), pair.string);
|
if(pair.pt.line == 0)
|
||||||
rd_regs()->cursor = pair.pt;
|
{
|
||||||
|
rd_regs()->string = push_str8_copy(rd_frame_arena(), string);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
rd_regs()->file_path = push_str8_copy(rd_frame_arena(), pair.string);
|
||||||
|
rd_regs()->cursor = pair.pt;
|
||||||
|
}
|
||||||
}break;
|
}break;
|
||||||
case RD_RegSlot_Cursor:
|
case RD_RegSlot_Cursor:
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user