Skip to content

Commit d874477

Browse files
committed
Merge branch 'master' of github.com:fundon/atom-minimap
2 parents 68f6f42 + 8a75589 commit d874477

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

History.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
0.9.1 / 2014-04-13
2+
==================
3+
4+
* fix minimap doesn't update on active view changes when auto-toggle is true, #59
5+
16
0.9.0 / 2014-04-11
27
==================
38

lib/minimap-view.coffee

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ class MinimapView extends View
3030
@scaleY = @scaleX * 0.8
3131
@minimapScale = @scale(@scaleX, @scaleY)
3232
@miniScrollView = @miniEditorView.scrollView
33-
@minimapScroll = 0
3433
@transform @miniWrapper[0], @minimapScale
3534
# dragging's status
3635
@isPressed = false
@@ -93,8 +92,8 @@ class MinimapView extends View
9392
@subscribeToEditor()
9493

9594
unsubscribeFromEditor: ->
96-
@unsubscribe @editor, '.minimap'
97-
@unsubscribe @scrollView, '.minimap'
95+
@unsubscribe @editor, '.minimap' if @editor?
96+
@unsubscribe @scrollView, '.minimap' if @scrollView?
9897

9998
subscribeToEditor: ->
10099
@subscribe @editor, 'screen-lines-changed.minimap', @updateMinimapEditorView

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "minimap",
33
"main": "./lib/minimap",
4-
"version": "0.9.0",
4+
"version": "0.9.1",
55
"private": true,
66
"description": "A preview of the full source code.",
77
"author": "Fangdun Cai <[email protected]>",

0 commit comments

Comments
 (0)