aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Document.cxx12
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);