From 0f0b2e5de8cfbcb9d3085ef04518e6b76cda00fc Mon Sep 17 00:00:00 2001 From: divverent Date: Sat, 10 Oct 2009 11:57:26 +0000 Subject: [PATCH] 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 --- sys_linux.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } } -- 2.39.2