CMD_OpenScratch
This commit is contained in:
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user