From: H.G. Muller Date: Sun, 21 Feb 2010 17:55:03 +0000 (+0100) Subject: Fix copying of kibitzed info in Engine-Output window X-Git-Tag: master-20100221~3 X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=commitdiff_plain;h=8b852cb7fcb75425a4e074c051d79d75bd573a97 Fix copying of kibitzed info in Engine-Output window Make sure all lines end with "\r\n" to not lose line breaks on copy-paste from the memo. (XBoard would strip those again.) --- diff --git a/engineoutput.c b/engineoutput.c index 6266f7c..2759aff 100644 --- a/engineoutput.c +++ b/engineoutput.c @@ -492,6 +492,7 @@ void OutputKibitz(int window, char *text) } opponentKibitzes = TRUE; // this causes split window DisplayMode in ICS modes. VerifyDisplayMode(); + strcpy(text+strlen(text)-1, "\r\n"); // to not lose line breaks on copying if(gameMode == IcsObserving) { DoSetWindowText(0, nLabel, gameInfo.white); SetIcon( 0, nColorIcon, nColorWhite);