From 977e81c8c104e5a6f9762a07b49638e7f80079ab Mon Sep 17 00:00:00 2001 From: stevenaaus Date: Tue, 27 Jul 2010 21:45:33 +0000 Subject: [PATCH] There seems bugs in the command-line code. Revert this "blank newline" fix first, then look for more git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@243 af15c1b1-3010-417e-b628-4374ebc0bcbd --- quakespasm/Quake/keys.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/quakespasm/Quake/keys.c b/quakespasm/Quake/keys.c index 269fe1fd..b40604a1 100644 --- a/quakespasm/Quake/keys.c +++ b/quakespasm/Quake/keys.c @@ -732,11 +732,14 @@ void History_Shutdown (void) i = (i + 1) & (CMDLINES - 1); } while (i != edit_line && !key_lines[i][1]); - while (i != edit_line && key_lines[i][1]) + do { + // Baker: I commented this line out because byte colored + // text isn't a feature in most ordinary engines. + // fprintf(hf, "%s\n", wcs2str(key_lines[i] + 1)); fprintf(hf, "%s\n", key_lines[i] + 1); i = (i + 1) & (CMDLINES - 1); - } + } while (i != edit_line && key_lines[i][1]); fclose(hf); } }