From 256b88fcd0114b4ac1bcb3c867d4cf9f071f6279 Mon Sep 17 00:00:00 2001 From: nightwing Date: Tue, 24 Apr 2012 15:05:08 +0400 Subject: [PATCH] fix findPrevious/findNext --- lib/ace/editor.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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) {