summaryrefslogtreecommitdiff
path: root/src/mir_core
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-05-03 15:16:26 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-05-03 15:16:26 +0300
commitdedc5fb828f07003eb2bfb4356055baec8490a5c (patch)
tree87dbdc2cdf46c2881b081e754cbc0013d0ae9af8 /src/mir_core
parent87c02d014a70340c62ec4db161a5bae90dd5cf88 (diff)
if we need to count symbols, we to count CRLF too
Diffstat (limited to 'src/mir_core')
-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);
}