aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2003-03-01 10:19:33 +0000
committernyamatongwe <unknown>2003-03-01 10:19:33 +0000
commitfb05ca58eba5e21f10d8a8910b436caad10ffa6c (patch)
treeac24b0c3e081dd91deda616322d276f8dfab6209
parentee5ec0f2b0ec1d4535232489b4901c3079faa446 (diff)
downloadscintilla-mirror-fb05ca58eba5e21f10d8a8910b436caad10ffa6c.tar.gz
Fixed DBCS handling.
-rw-r--r--src/StyleContext.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/StyleContext.h b/src/StyleContext.h
index d099520d9..f2f8305c9 100644
--- a/src/StyleContext.h
+++ b/src/StyleContext.h
@@ -74,7 +74,7 @@ public:
if (ch >= 0x100)
currentPos++;
ch = chNext;
- GetNextChar(currentPos);
+ GetNextChar(currentPos + ((ch >= 0x100) ? 1 : 0));
} else {
atLineStart = false;
chPrev = ' ';