Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 99b71a1

Browse files
author
Rajesh Segu
committed
Fixed an out-of-scope variable error
Silly me.
1 parent f8c64e5 commit 99b71a1

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/search/FindReplace.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,9 @@ define(function (require, exports, module) {
240240
return;
241241
}
242242

243+
//Flag that controls the navigation controls.
244+
var enableNavigator = false;
245+
243246
// Highlight all matches
244247
// (Except on huge documents, where this is too expensive)
245248
if (cm.getValue().length < 500000) {
@@ -261,8 +264,7 @@ define(function (require, exports, module) {
261264
cursor = getSearchCursor(cm, state.query, {line: cursor.to().line + 1, ch: 0});
262265
}
263266
}
264-
265-
var enableNavigator = false;
267+
266268
if (resultCount === 0) {
267269
$("#find-counter").text(Strings.FIND_NO_RESULTS);
268270
} else if (resultCount === 1) {

0 commit comments

Comments
 (0)