getSequence(ignoreHidden);
boolean found = false;
- while (!found || findAll)
+ while ((!found || findAll) && sequenceIndex < end)
{
found = findNextMatch(searchString, searchPattern, searchDescription,
ignoreHidden);
- if (sequenceIndex >= end)
- {
- break;
- }
}
}
*/
int[] truePositions = searchedSequenceMap
.locateInFrom(matchStartPosition, matchEndPosition);
- for (int i = 0; i < truePositions.length - 1; i += 2)
- {
- searchResults.addResult(seq, truePositions[i], truePositions[i + 1]);
- }
+ searchResults.addResult(seq, truePositions);
}
/**