Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Removed unnecessary part since a CodeMirror issue was fixed #5457

Merged
merged 1 commit into from
Dec 11, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions src/search/FindReplace.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,14 +272,6 @@ define(function (require, exports, module) {
var cursor = getSearchCursor(cm, state.query);
while (cursor.findNext()) {
resultSet.push(cursor.pos); // pos is unique obj per search result

// TODO: remove this section when https://github.com/marijnh/CodeMirror/issues/1155 is fixed
if (cursor.pos.match && cursor.pos.match[0] === "") {
if (cursor.to().line + 1 === cm.lineCount()) {
break;
}
cursor = getSearchCursor(cm, state.query, {line: cursor.to().line + 1, ch: 0});
}
}

// Highlight all matches if there aren't too many
Expand Down