fix bug that caused newlines of console lines to be cut off (this made pasting fail)
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 10 Oct 2009 11:57:26 +0000 (11:57 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 10 Oct 2009 11:57:26 +0000 (11:57 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9328 d7cf8633-e32d-0410-b094-e92efae38249

sys_linux.c

index 79b5ae4..c9d36b0 100644 (file)
@@ -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;
                        }
                }