diff options
author | nyamatongwe <unknown> | 2013-05-07 21:49:37 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2013-05-07 21:49:37 +1000 |
commit | 91d928e41eb04dfb81656310f503a54eaf90293b (patch) | |
tree | 5e93612edfd1c990251936f7877c1c73094bf140 | |
parent | 7cfa4c9a430635bb58df742e2f481db7cb9866ed (diff) | |
download | scintilla-mirror-91d928e41eb04dfb81656310f503a54eaf90293b.tar.gz |
Simplified code and avoid warning.
-rw-r--r-- | lexers/LexOthers.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lexers/LexOthers.cxx b/lexers/LexOthers.cxx index 829978180..a1a2e3054 100644 --- a/lexers/LexOthers.cxx +++ b/lexers/LexOthers.cxx @@ -1047,10 +1047,10 @@ static int RecogniseErrorListLine(const char *lineBuffer, unsigned int lengthLin } } else if (state == stCtagsStart) { if ((lineBuffer[i - 1] == '\t') && - ((ch == '/' && lineBuffer[i + 1] == '^') || Is0To9(ch))) { + ((ch == '/' && chNext == '^') || Is0To9(ch))) { state = stCtags; break; - } else if ((ch == '/') && (lineBuffer[i + 1] == '^')) { + } else if ((ch == '/') && (chNext == '^')) { state = stCtagsStartString; } } else if ((state == stCtagsStartString) && ((lineBuffer[i] == '$') && (lineBuffer[i + 1] == '/'))) { |