diff --git a/src/text_editor/commands.cpp b/src/text_editor/commands.cpp index d2213cb..75980ae 100644 --- a/src/text_editor/commands.cpp +++ b/src/text_editor/commands.cpp @@ -216,6 +216,12 @@ void CMD_OpenLogs() { Open(LogBuffer->name); } RegisterCommand(CMD_OpenLogs, "", "Opens the text editor logs and clear error counter"); +void CMD_OpenScratch() { + ErrorCount = 0; + Buffer *buffer = GetBuffer(NullBufferID); + Open(buffer->name); +} RegisterCommand(CMD_OpenScratch, "", "Opens the scratch buffer"); + void CMD_Errors() { CMD_OpenLogs(); } RegisterCommand(CMD_Errors, "", "Opens the text editor logs and clear error counter");