projects
/
xboard.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Fix XB crash on giving keyboard focus to non-text widget
[xboard.git]
/
winboard
/
wchat.c
diff --git
a/winboard/wchat.c
b/winboard/wchat.c
index
93e5ee1
..
4cf8dce
100644
(file)
--- a/
winboard/wchat.c
+++ b/
winboard/wchat.c
@@
-279,5
+279,7
@@
void OutputChatMessage(int partner, char *text)
{
\r
if(!chatHandle[partner]) return;
\r
\r
+ int n = strlen(text);
\r
+ text[n+1] = 0; text[n] = '\n'; text[n-1] = '\r'; // Needs CR to not lose line breaks on copy-paste
\r
InsertIntoMemo(chatHandle[partner], text);
\r
}
\r