From 3ad6fd974bb807bd6e3aae3bd0ba529f46df9420 Mon Sep 17 00:00:00 2001 From: tophf Date: Sat, 21 Mar 2015 05:53:41 +0300 Subject: [PATCH] Editor: fix findNext to not display Chrome's findbar --- edit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edit.js b/edit.js index 3974257b..b0f00888 100644 --- a/edit.js +++ b/edit.js @@ -408,7 +408,7 @@ function setupGlobalSearch() { pos = reverse ? CodeMirror.Pos(cm.lastLine()) : CodeMirror.Pos(0, 0); } var searchCursor = cm.getSearchCursor(state.query, pos, shouldIgnoreCase(state.query)); - if (searchCursor.find(reverse) || editors.length == 1) { + if (searchCursor.find(reverse)) { if (editors.length > 1) { makeSectionVisible(cm); cm.focus();