diff --git a/lib/ace/editor.js b/lib/ace/editor.js index 67fe5121..05f07e20 100644 --- a/lib/ace/editor.js +++ b/lib/ace/editor.js @@ -1246,18 +1246,14 @@ var Editor = function(renderer, session) { this.findNext = function(options, animate) { options = options || {}; - if (typeof options.backwards == "undefined") - options.backwards = false; this.$search.set(options); this.$find(false, animate); }; this.findPrevious = function(options, animate) { options = options || {}; - if (typeof options.backwards == "undefined") - options.backwards = true; this.$search.set(options); - this.$find(false, animate); + this.$find(true, animate); }; this.$find = function(backwards, animate) {