diff options
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r-- | src/Editor.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index d07f01945..352a133ae 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -1980,7 +1980,7 @@ void Editor::AddCharUTF(const char *s, unsigned int len, bool treatAsDBCS) { if (treatAsDBCS || pdoc->dbcsCodePage != SC_CP_UTF8) { if (len > 1) { // DBCS code page or DBCS font character set. - ch |= (ch << 8) | static_cast<unsigned char>(s[1]); + ch = (ch << 8) | static_cast<unsigned char>(s[1]); } } else { if ((ch < 0xC0) || (1 == len)) { |