From: divverent Date: Sat, 10 Oct 2009 11:57:26 +0000 (+0000) Subject: fix bug that caused newlines of console lines to be cut off (this made pasting fail) X-Git-Tag: xonotic-v0.1.0preview~1306 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0f0b2e5de8cfbcb9d3085ef04518e6b76cda00fc;p=xonotic%2Fdarkplaces.git fix bug that caused newlines of console lines to be cut off (this made pasting fail) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9328 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/sys_linux.c b/sys_linux.c index 79b5ae42..c9d36b0b 100644 --- a/sys_linux.c +++ b/sys_linux.c @@ -239,7 +239,9 @@ char *Sys_ConsoleInput(void) if (len >= 1) { // rip off the \n and terminate - text[len-1] = 0; + // div0: WHY? console code can deal with \n just fine + // this caused problems with pasting stuff into a terminal window + // text[len-1] = 0; return text; } }