diff --git a/lib/ace/ext/searchbox.js b/lib/ace/ext/searchbox.js index 00bb3321..71cab2ac 100644 --- a/lib/ace/ext/searchbox.js +++ b/lib/ace/ext/searchbox.js @@ -55,7 +55,7 @@ var html = ''.replace(/>\s+/g, ">"); @@ -126,9 +126,6 @@ var SearchBox = function(editor, range, showReplaceForm) { event.addListener(this.replaceInput, "focus", function() { _this.activeInput = _this.replaceInput; }); - event.addListener(this.searchOptions, "change", function() { - _this.find(false, false); - }); }; //keybinging outsite of the searchbox @@ -199,6 +196,7 @@ var SearchBox = function(editor, range, showReplaceForm) { dom.setCssClass(this.regExpOption, "checked", this.regExpOption.checked); dom.setCssClass(this.wholeWordOption, "checked", this.wholeWordOption.checked); dom.setCssClass(this.caseSensitiveOption, "checked", this.caseSensitiveOption.checked); + this.find(false, false); }; this.find = function(skipCurrent, backwards) {