From 2f85cc13dfddd24bcb3761d5728a17712d63674a Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Sat, 3 Mar 2012 21:55:53 +0000 Subject: [PATCH] cmd.c (Cbuf_InsertText): Unconditionally add a newline after the inserted text. Fixes executed files without a newline at the end of them eating up followup commands. git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@639 af15c1b1-3010-417e-b628-4374ebc0bcbd --- Quake/cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Quake/cmd.c b/Quake/cmd.c index fb0d143c..6d8ccb7b 100644 --- a/Quake/cmd.c +++ b/Quake/cmd.c @@ -127,7 +127,7 @@ void Cbuf_InsertText (const char *text) // add the entire text of the file Cbuf_AddText (text); - + SZ_Write (&cmd_text, "\n", 1); // add the copied off data if (templen) {