diff options
author | nyamatongwe <devnull@localhost> | 2001-11-27 07:29:57 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2001-11-27 07:29:57 +0000 |
commit | 47f9af25a46c63f8d3dd72b8a20eca022636a8ef (patch) | |
tree | 1dd201e9f04e83a4744cdd45d9f7738a96ea0c5d /src/Document.cxx | |
parent | 1b5aa5d55b88286adfdacd340531799c1da98066 (diff) | |
download | scintilla-mirror-47f9af25a46c63f8d3dd72b8a20eca022636a8ef.tar.gz |
Changed some tests for non-ASCII characters from "> 0x80" to ">= 0x80".
Diffstat (limited to 'src/Document.cxx')
-rw-r--r-- | src/Document.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Document.cxx b/src/Document.cxx index 806f61f19..3ece44c94 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -688,7 +688,7 @@ void Document::ConvertLineEnds(int eolModeSet) { } Document::charClassification Document::WordCharClass(unsigned char ch) { - if ((SC_CP_UTF8 == dbcsCodePage) && (ch > 0x80)) + if ((SC_CP_UTF8 == dbcsCodePage) && (ch >= 0x80)) return ccWord; return charClass[ch]; } @@ -1032,7 +1032,7 @@ void Document::SetWordChars(unsigned char *chars) { } } else { for (ch = 0; ch < 256; ch++) { - if (ch > 0x80 || isalnum(ch) || ch == '_') + if (ch >= 0x80 || isalnum(ch) || ch == '_') charClass[ch] = ccWord; } } |