diff options
author | nyamatongwe <unknown> | 2007-04-19 04:38:53 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2007-04-19 04:38:53 +0000 |
commit | 476e533e7277cfd122f3ca3472783831c9e47ca5 (patch) | |
tree | 1f7678e4a7fa68f9f761bd4650b9a84339841db8 /src/Document.cxx | |
parent | 101ccc292a2a2623d6680e8f488f762bd5c9a091 (diff) | |
download | scintilla-mirror-476e533e7277cfd122f3ca3472783831c9e47ca5.tar.gz |
All Unicode planes supported, not just the Basic Multilingual Plane.
Diffstat (limited to 'src/Document.cxx')
-rw-r--r-- | src/Document.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Document.cxx b/src/Document.cxx index a25e3070d..3061bbc37 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -266,7 +266,9 @@ int Document::LenChar(int pos) { if (ch < 0x80) return 1; int len = 2; - if (ch >= (0x80 + 0x40 + 0x20)) + if (ch >= (0x80 + 0x40 + 0x20 + 0x10)) + len = 4; + else if (ch >= (0x80 + 0x40 + 0x20)) len = 3; int lengthDoc = Length(); if ((pos + len) > lengthDoc) |