aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2013-05-07 21:49:37 +1000
committernyamatongwe <devnull@localhost>2013-05-07 21:49:37 +1000
commitaca03b0ab67b8f509d19dae1e87cdacc453df1e8 (patch)
tree2704d75faafee4888403087be848c5310c85fc86
parent56d5c22699a6dbb05c0916d0637fe04bc67970e4 (diff)
downloadscintilla-mirror-aca03b0ab67b8f509d19dae1e87cdacc453df1e8.tar.gz
Simplified code and avoid warning.
-rw-r--r--lexers/LexOthers.cxx4
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] == '/'))) {