From 5d52a7ec2ef220de87c8994416b643ef85d3241a Mon Sep 17 00:00:00 2001 From: tophf Date: Tue, 1 Sep 2015 10:54:56 +0300 Subject: [PATCH] Editor: "findNext" after page load should call "find" --- edit.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/edit.js b/edit.js index 56e93243..6726ca8b 100644 --- a/edit.js +++ b/edit.js @@ -579,6 +579,9 @@ function setupGlobalSearch() { if (cm.state.search) { return cm.state.search; } + if (!curState) { + return null; + } newState = curState; } cm.state.search = {