summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mir_core/src/CCtrlRichEdit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mir_core/src/CCtrlRichEdit.cpp b/src/mir_core/src/CCtrlRichEdit.cpp
index 7c874f50f5..5fd2203d5d 100644
--- a/src/mir_core/src/CCtrlRichEdit.cpp
+++ b/src/mir_core/src/CCtrlRichEdit.cpp
@@ -39,7 +39,7 @@ int CCtrlRichEdit::GetRichTextLength(int iCodePage) const
if (iCodePage == CP_ACP)
gtl.flags |= GTL_NUMBYTES;
else
- gtl.flags |= GTL_NUMCHARS;
+ gtl.flags |= GTL_NUMCHARS | GT_USECRLF;
return (int)SendMessage(m_hwnd, EM_GETTEXTLENGTHEX, (WPARAM)&gtl, 0);
}