bug: Check if an active editor exists
Fix
MODIFY
lib/find-view.js
lib/find-view.js
@@ -698,7 +698,9 @@ class FindView {
toggleSelectionOption() {
this.search({inCurrentSelection: !this.model.getFindOptions().inCurrentSelection});
- if (this.model.getEditor().getSelectedBufferRanges().every(range => range.isEmpty())) {
+
+ let editor = this.model.getEditor();
+ if (editor && editor.getSelectedBufferRanges().every(range => range.isEmpty())) {
this.selectFirstMarkerAfterCursor();
}
}

:bug: Check if an active editor exists

Fix #1012