Skip to content

Commit 8f095df

Browse files
ttyrueiwoqpmarijnh
authored andcommitted
[search addon] Upon replace, search from the start of selection
1 parent 4d1e417 commit 8f095df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addon/search/search.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@
196196
replaceAll(cm, query, text)
197197
} else {
198198
clearSearch(cm);
199-
var cursor = getSearchCursor(cm, query, cm.getCursor());
199+
var cursor = getSearchCursor(cm, query, cm.getCursor("from"));
200200
var advance = function() {
201201
var start = cursor.from(), match;
202202
if (!(match = cursor.findNext())) {

0 commit comments

Comments
 (0)