diff options
author | nyamatongwe <devnull@localhost> | 2013-06-25 18:08:24 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2013-06-25 18:08:24 +1000 |
commit | b701dfb7e6ba926594d212268eceb815eea49d64 (patch) | |
tree | 3e3afc7f127fdd3986f85c24a85d68f613cb2c5c /lexers/LexLua.cxx | |
parent | ef32912cc53207a3b5ee6c6ce792c65e0620b2ea (diff) | |
download | scintilla-mirror-b701dfb7e6ba926594d212268eceb815eea49d64.tar.gz |
Make labels work with non-ASCII characters in UTF-8.
Diffstat (limited to 'lexers/LexLua.cxx')
-rw-r--r-- | lexers/LexLua.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lexers/LexLua.cxx b/lexers/LexLua.cxx index 4277d87a5..f0c3a5e57 100644 --- a/lexers/LexLua.cxx +++ b/lexers/LexLua.cxx @@ -171,16 +171,16 @@ static void ColouriseLuaDoc( sc.ChangeState(SCE_LUA_LABEL); if (ws1) { sc.SetState(SCE_LUA_DEFAULT); - sc.Forward(ws1); + sc.ForwardBytes(ws1); } sc.SetState(SCE_LUA_LABEL); - sc.Forward(lbl - ws1); + sc.ForwardBytes(lbl - ws1); if (ws2) { sc.SetState(SCE_LUA_DEFAULT); - sc.Forward(ws2); + sc.ForwardBytes(ws2); } sc.SetState(SCE_LUA_LABEL); - sc.Forward(2); + sc.ForwardBytes(2); } } } |