diff --git a/lib/minimap.coffee b/lib/minimap.coffee index b7ed02a4..f22cca6a 100644 --- a/lib/minimap.coffee +++ b/lib/minimap.coffee @@ -99,9 +99,9 @@ class Minimap if atom.config.get('minimap.displayPluginsControls') @subscriptions.add atom.commands.add 'atom-workspace', - 'minimap:open-quick-settings': -> + 'minimap:open-quick-settings': => editor = atom.workspace.getActiveEditor() - @minimapForEditor(editor).openQuickSettings.mousedown() + @minimapForEditor(editor)?.openQuickSettings.mousedown() if editor? @subscriptions.add atom.config.observe 'minimap.displayMinimapOnLeft', (value) -> workspaceElement.classList.toggle 'minimap-on-left', value