+ // if executing default.cfg for the first time, lock the cvar defaults
+ // it may seem backwards to insert this text BEFORE the default.cfg
+ // but Cbuf_InsertText inserts before, so this actually ends up after it.
+ if (!strcmp(Cmd_Argv(1), "default.cfg"))
+ Cbuf_InsertText("\ncvar_lockdefaults\n");
+
+ // insert newline after the text to make sure the last line is terminated (some text editors omit the trailing newline)
+ // (note: insertion order here is backwards from execution order, so this adds it after the text, by calling it before...)
+ Cbuf_InsertText ("\n");