projects
/
xboard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
b37a8fe
)
Fix copying of kibitzed info in Engine-Output window
author
H.G. Muller
<h.g.muller@hccnet.nl>
Sun, 21 Feb 2010 17:55:03 +0000 (18:55 +0100)
committer
Arun Persaud
<arun@nubati.net>
Mon, 22 Feb 2010 02:36:16 +0000 (18:36 -0800)
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
patch
|
blob
|
history
diff --git
a/engineoutput.c
b/engineoutput.c
index
6266f7c
..
2759aff
100644
(file)
--- 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);