diff options
-rw-r--r-- | lexers/LexCPP.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lexers/LexCPP.cxx b/lexers/LexCPP.cxx index 5cc2f4556..01ad43aea 100644 --- a/lexers/LexCPP.cxx +++ b/lexers/LexCPP.cxx @@ -90,7 +90,7 @@ static bool followsReturnKeyword(StyleContext &sc, LexAccessor &styler) { static std::string GetRestOfLine(LexAccessor &styler, int start, bool allowSpace) { std::string restOfLine; int i =0; - char ch = styler.SafeGetCharAt(start + i, '\n'); + char ch = styler.SafeGetCharAt(start, '\n'); while ((ch != '\r') && (ch != '\n')) { if (allowSpace || (ch != ' ')) restOfLine += ch; |