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

Commit 0811f71

Browse files
author
Marcel Gerber
committed
Removed unnecessary part since a CodeMirror issue was fixed
1 parent e49a849 commit 0811f71

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

src/search/FindReplace.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -272,14 +272,6 @@ define(function (require, exports, module) {
272272
var cursor = getSearchCursor(cm, state.query);
273273
while (cursor.findNext()) {
274274
resultSet.push(cursor.pos); // pos is unique obj per search result
275-
276-
// TODO: remove this section when https://github.com/marijnh/CodeMirror/issues/1155 is fixed
277-
if (cursor.pos.match && cursor.pos.match[0] === "") {
278-
if (cursor.to().line + 1 === cm.lineCount()) {
279-
break;
280-
}
281-
cursor = getSearchCursor(cm, state.query, {line: cursor.to().line + 1, ch: 0});
282-
}
283275
}
284276

285277
// Highlight all matches if there aren't too many

0 commit comments

Comments
 (0)