From eb437801c97f9c3fc28af97154cfea0d31ccf288 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Wed, 9 Jan 2013 15:21:44 -0600 Subject: Fix win32 dedicated input line printing to backlog Use to write win32 input line using WriteConsole then overwrite by CON_Print, so when CON_Print removes color format characters the end of original input line was visable. "hi ^1guys" use to be shown as "hi guysys" in the console backlog. --- src/sys/con_win32.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sys/con_win32.c b/src/sys/con_win32.c index 73f62cd1..d4305837 100644 --- a/src/sys/con_win32.c +++ b/src/sys/con_win32.c @@ -384,12 +384,12 @@ char *CON_Input( void ) return NULL; } - CON_HistAdd(); - Com_Printf( "%s\n", qconsole_line ); - qconsole_linelen = 0; CON_Show(); + CON_HistAdd(); + Com_Printf( "%s\n", qconsole_line ); + return qconsole_line; } -- cgit