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
This commit is contained in:
Ozkan Sezer 2012-03-03 21:55:53 +00:00
parent 4f9ac636cc
commit 2f85cc13df

View file

@ -127,7 +127,7 @@ void Cbuf_InsertText (const char *text)
// add the entire text of the file // add the entire text of the file
Cbuf_AddText (text); Cbuf_AddText (text);
SZ_Write (&cmd_text, "\n", 1);
// add the copied off data // add the copied off data
if (templen) if (templen)
{ {