Skip to content
Snippets Groups Projects
Commit 8f095df4 authored by Lu Fangjian's avatar Lu Fangjian Committed by Marijn Haverbeke
Browse files

[search addon] Upon replace, search from the start of selection

parent 4d1e417f
No related branches found
No related tags found
No related merge requests found
......@@ -196,7 +196,7 @@
replaceAll(cm, query, text)
} else {
clearSearch(cm);
var cursor = getSearchCursor(cm, query, cm.getCursor());
var cursor = getSearchCursor(cm, query, cm.getCursor("from"));
var advance = function() {
var start = cursor.from(), match;
if (!(match = cursor.findNext())) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment