diff options
author | nyamatongwe <unknown> | 2003-01-18 23:04:46 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2003-01-18 23:04:46 +0000 |
commit | b562a27f1ece3609f6796b6355052ade1646cae8 (patch) | |
tree | a076ae962768bc163d5709ca9d27a690e40be8fb /src/Document.cxx | |
parent | 71c7f0e9d285c158f09fd25d5e174280c30d57aa (diff) | |
download | scintilla-mirror-b562a27f1ece3609f6796b6355052ade1646cae8.tar.gz |
Removed special casing of '^' and '$' that tried to prevent hangs. This is
now the containers responsibility.
Diffstat (limited to 'src/Document.cxx')
-rw-r--r-- | src/Document.cxx | 12 |
1 files changed, 0 insertions, 12 deletions
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); |