]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
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 79b5ae426f9aa3c2f8d530f2e5422240f9ae3b06..c9d36b0b9c0e2b8abe1dceb34d163c65339ffe2c 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;
                        }
                }