Skip to content

Commit 4af334c

Browse files
committed
fixing Issue
1 parent 251fec0 commit 4af334c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

client/utils/codemirror-search.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,12 @@ function doSearch(cm, rev, persistent, immediate, ignoreQuery) {
515515
startSearch(cm, state, q);
516516
findNext(cm, rev);
517517
}
518-
518+
cm.on('change', function () {
519+
var state = getSearchState(cm);
520+
if (state.query) {
521+
startSearch(cm, state, state.queryText);
522+
}
523+
});
519524
} else {
520525
dialog(cm, queryDialog, 'Search for:', q, function (query) {
521526
if (query && !state.query)

0 commit comments

Comments
 (0)