Skip to content

Commit fcda1bc

Browse files
committed
Adds back activeViewSupportMinimap method
1 parent e9094c4 commit fcda1bc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/minimap-view.coffee

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ class MinimapView extends View
7272
@paneView.removeClass('with-minimap')
7373
@detachFromPaneView()
7474

75+
activeViewSupportMinimap: -> @getEditor()?
7576
minimapIsAttached: -> @paneView.find('.minimap').length is 1
7677

7778
# EDITOR VIEW MANAGEMENT
@@ -162,7 +163,7 @@ class MinimapView extends View
162163
return if item is @activeItem
163164
@activeItem = item
164165

165-
if @getEditor()
166+
if @activeViewSupportMinimap()
166167
@log 'minimap is supported by the current tab'
167168
@activatePaneViewMinimap() unless @minimapIsAttached()
168169
@storeActiveEditor()

0 commit comments

Comments
 (0)