diff options
author | nyamatongwe <devnull@localhost> | 2007-04-19 04:38:53 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2007-04-19 04:38:53 +0000 |
commit | 6f02bfd7333bd67d7e89531c9e80ee3b6d0915c7 (patch) | |
tree | 1f7678e4a7fa68f9f761bd4650b9a84339841db8 /src/Document.cxx | |
parent | 1237ee3c6a123b5b6bd6270bbadc3ba569a10854 (diff) | |
download | scintilla-mirror-6f02bfd7333bd67d7e89531c9e80ee3b6d0915c7.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) |