From b562a27f1ece3609f6796b6355052ade1646cae8 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 18 Jan 2003 23:04:46 +0000 Subject: Removed special casing of '^' and '$' that tried to prevent hangs. This is now the containers responsibility. --- src/Document.cxx | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src') diff --git a/src/Document.cxx b/src/Document.cxx index 2844bf20e..6870c8a77 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -868,18 +868,6 @@ long Document::FindText(int minPos, int maxPos, const char *s, int pos = -1; int lenRet = 0; char searchEnd = s[*length - 1]; - if ((increment == 1) && (*length == 1)) { - // These produce empty selections so nudge them on if needed - if (s[0] == '^') { - if (startPos == LineStart(lineRangeStart)) - startPos++; - } else if (s[0] == '$') { - if ((startPos == LineEnd(lineRangeStart)) && (lineRangeStart < lineRangeEnd)) - startPos = LineStart(lineRangeStart + 1); - } - lineRangeStart = LineFromPosition(startPos); - lineRangeEnd = LineFromPosition(endPos); - } int lineRangeBreak = lineRangeEnd + increment; for (int line = lineRangeStart; line != lineRangeBreak; line += increment) { int startOfLine = LineStart(line); -- cgit v1.2.3