Skip to content

Commit

Permalink
Fix win32 dedicated input line printing to backlog
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
zturtleman committed Jan 9, 2013
1 parent c501c1a commit 768083b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/sys/con_win32.c
Expand Up @@ -383,12 +383,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;
}

Expand Down

0 comments on commit 768083b

Please sign in to comment.