CMD_OpenScratch

This commit is contained in:
Krzosa Karol
2026-02-01 11:21:21 +01:00
parent bc7c52e1ec
commit 5198c11fc6

View File

@@ -216,6 +216,12 @@ void CMD_OpenLogs() {
Open(LogBuffer->name); Open(LogBuffer->name);
} RegisterCommand(CMD_OpenLogs, "", "Opens the text editor logs and clear error counter"); } 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() { void CMD_Errors() {
CMD_OpenLogs(); CMD_OpenLogs();
} RegisterCommand(CMD_Errors, "", "Opens the text editor logs and clear error counter"); } RegisterCommand(CMD_Errors, "", "Opens the text editor logs and clear error counter");