diff options
author | nyamatongwe <nyamatongwe@gmail.com> | 2011-11-09 13:37:27 +1100 |
---|---|---|
committer | nyamatongwe <nyamatongwe@gmail.com> | 2011-11-09 13:37:27 +1100 |
commit | b611cc2fb8f4cebed8dbcb9e1a2cae0a16faa486 (patch) | |
tree | f1a50493f9b2baa00d8072012a19fe66ff41eabc | |
parent | 67877c700222b1fc9d736a8a1cfb7349ec6b76d7 (diff) | |
download | scintilla-mirror-b611cc2fb8f4cebed8dbcb9e1a2cae0a16faa486.tar.gz |
Avoid warning about dead code.
-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; |