diff --git a/src/command.c b/src/command.c index 6f3ccd7f6..77e88e203 100644 --- a/src/command.c +++ b/src/command.c @@ -717,8 +717,7 @@ static void COM_Exec_f(void) CONS_Printf(M_GetText("executing %s\n"), COM_Argv(1)); // insert text file into the command buffer - COM_BufAddText((char *)buf); - COM_BufAddText("\n"); + COM_ImmedExecute((char *)buf); // free buffer Z_Free(buf);