Editor: fix findNext to not display Chrome's findbar

This commit is contained in:
tophf 2015-03-21 05:53:41 +03:00
parent 6b710e9f56
commit 3ad6fd974b

View File

@ -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();