Fix remedy crash on f9 and scratch content reset to normal

This commit is contained in:
Krzosa Karol
2026-01-24 14:22:05 +01:00
parent 7b47f2f6f5
commit 923131a5b6
2 changed files with 7 additions and 3 deletions

View File

@@ -10,7 +10,9 @@ bool SearchCaseSensitive = false;
bool SearchWordBoundary = false;
bool BreakOnError = false;
Int ErrorCount;
// String16 InitialScratchContent;
#if 1
String16 InitialScratchContent;
#else
String16 InitialScratchContent = uR"==(0
1
2
@@ -18,6 +20,7 @@ String16 InitialScratchContent = uR"==(0
4
5
6)==";
#endif
Allocator SysAllocator = {SystemAllocatorProc};
String ConfigDir;

View File

@@ -2263,7 +2263,8 @@ void CO_StopDebugging(mco_coro *co) {
} RegisterCoroutineCommand(CO_StopDebugging, "shift-f5", "Stop debugging");
void CO_AddBreakpoint(mco_coro *co) {
if (!RDBG_InitConnection(co)) {
bool conn = RDBG_InitConnection(co);
if (!conn) {
return;
}
@@ -2291,7 +2292,7 @@ void CO_SelfAttachDebugger(mco_coro *co) {
MemoryZero(RDBG_Ctx.last_error, sizeof(RDBG_Ctx.last_error));
return;
}
} RegisterCoroutineCommand(CO_SelfAttachDebugger, "f9", "Spawn and self attach the debugger to the text editor");
} RegisterCoroutineCommand(CO_SelfAttachDebugger, "", "Spawn and self attach the debugger to the text editor");
void QuitDebugger() {
if (RDBG_Ctx.command_pipe_handle == NULL) {