diff options
Diffstat (limited to 'src/LexRuby.cxx')
-rw-r--r-- | src/LexRuby.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/LexRuby.cxx b/src/LexRuby.cxx index 806a1991f..fe7497404 100644 --- a/src/LexRuby.cxx +++ b/src/LexRuby.cxx @@ -294,9 +294,9 @@ static void ColouriseRbDoc(unsigned int startPos, int length, int initStyle, chPrev = ch; } if (state == SCE_P_WORD) { - ClassifyWordRb(styler.GetStartSegment(), lengthDoc, keywords, styler, prevWord); + ClassifyWordRb(styler.GetStartSegment(), lengthDoc-1, keywords, styler, prevWord); } else { - styler.ColourTo(lengthDoc, state); + styler.ColourTo(lengthDoc-1, state); } } |