From 8b852cb7fcb75425a4e074c051d79d75bd573a97 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sun, 21 Feb 2010 18:55:03 +0100 Subject: [PATCH] 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.) --- engineoutput.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) 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); -- 1.7.0.4