aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Document.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Document.cxx')
-rw-r--r--src/Document.cxx4
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;
}
}