diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/LexBash.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/LexBash.cxx b/src/LexBash.cxx index 903d793bb..dfbf309d6 100644 --- a/src/LexBash.cxx +++ b/src/LexBash.cxx @@ -258,7 +258,8 @@ static void ColouriseBashDoc(unsigned int startPos, int length, int initStyle, if (state == SCE_SH_DEFAULT) { if (ch == '\\') { // escaped character - i++; + if (i < lengthDoc - 1) + i++; ch = chNext; chNext = chNext2; styler.ColourTo(i, SCE_SH_IDENTIFIER); |