diff --git a/lib/main.coffee b/lib/main.coffee index 1b3472b2..899d947d 100644 --- a/lib/main.coffee +++ b/lib/main.coffee @@ -222,6 +222,7 @@ class Main # # Returns a {Minimap}. minimapForEditor: (textEditor) -> + return unless textEditor? @editorsMinimaps ?= new Map minimap = @editorsMinimaps.get(textEditor)