Skip to content

Commit

Permalink
🐛 Fix error raised when retrieving active minimap without active editor
Browse files Browse the repository at this point in the history
  • Loading branch information
abe33 committed Feb 3, 2015
1 parent 81bc9f2 commit 549830d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/main.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ class Main
#
# Returns a {Minimap}.
minimapForEditor: (textEditor) ->
return unless textEditor?
@editorsMinimaps ?= new Map

minimap = @editorsMinimaps.get(textEditor)
Expand Down

0 comments on commit 549830d

Please sign in to comment.