summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/parser/antlr_input.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser/antlr_input.cpp b/src/parser/antlr_input.cpp
index d72b311cb..aa431ef42 100644
--- a/src/parser/antlr_input.cpp
+++ b/src/parser/antlr_input.cpp
@@ -402,7 +402,7 @@ std::string parseErrorHelper(const char* lineStart, int charPositionInLine, cons
} else {
bool foundCaretPos = false;
- for(int tries = 0; tries < 1 && caretPos > 0 && !foundCaretPos; ++tries) {
+ for(int tries = 0; tries < 2 && caretPos > 0 && !foundCaretPos; ++tries) {
// go to nearest alphanumeric string (before current position),
// see if that word can be found in original message. If so,
// point to that, else keep pointer where it was.
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback