Skip to content

Commit ae3a43c

Browse files
committed
fix file-path-parameterized commands w/ ipc
1 parent 2f7434c commit ae3a43c

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/raddbg/raddbg_core.c

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11295,14 +11295,18 @@ rd_regs_fill_slot_from_string(RD_RegSlot slot, String8 string)
1129511295
{
1129611296
default:
1129711297
case RD_RegSlot_String:
11298-
{
11299-
rd_regs()->string = push_str8_copy(rd_frame_arena(), string);
11300-
}break;
1130111298
case RD_RegSlot_FilePath:
1130211299
{
1130311300
String8TxtPtPair pair = str8_txt_pt_pair_from_string(string);
11304-
rd_regs()->file_path = push_str8_copy(rd_frame_arena(), pair.string);
11305-
rd_regs()->cursor = pair.pt;
11301+
if(pair.pt.line == 0)
11302+
{
11303+
rd_regs()->string = push_str8_copy(rd_frame_arena(), string);
11304+
}
11305+
else
11306+
{
11307+
rd_regs()->file_path = push_str8_copy(rd_frame_arena(), pair.string);
11308+
rd_regs()->cursor = pair.pt;
11309+
}
1130611310
}break;
1130711311
case RD_RegSlot_Cursor:
1130811312
{

0 commit comments

Comments
 (0)