From 72c733e829d6ec6573c0512769086a256aeb2bd8 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Mon, 18 Jun 2012 21:52:55 -0700 Subject: [PATCH] * Fix for editor that can be null if no editor is loaded. --- lib/ace/commands/multi_select_commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ace/commands/multi_select_commands.js b/lib/ace/commands/multi_select_commands.js index ed396fb3..ebac5cc7 100644 --- a/lib/ace/commands/multi_select_commands.js +++ b/lib/ace/commands/multi_select_commands.js @@ -92,7 +92,7 @@ exports.multiSelectCommands = [{ bindKey: "esc", exec: function(editor) { editor.exitMultiSelectMode(); }, readonly: true, - isAvailable: function(editor) {return editor.inMultiSelectMode} + isAvailable: function(editor) {return editor && editor.inMultiSelectMode} }]; var HashHandler = require("../keyboard/hash_handler").HashHandler;