Skip to content

Commit f5810db

Browse files
committed
Merge pull request #64 from fundon/dev
Properly stick to the editor line height #b981fb
2 parents 0127438 + 501753c commit f5810db

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

lib/minimap-editor-view.coffee

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ class MinimapEditorView extends ScrollView
1919
super
2020
@bufferChanges = []
2121

22+
initialize: ->
23+
@lines.css 'line-height', atom.config.get('editor.lineHeight') + 'em'
24+
atom.config.observe 'editor.lineHeight', =>
25+
@lines.css 'line-height', atom.config.get('editor.lineHeight') + 'em'
26+
2227
destroy: ->
2328
@unsubscribe()
2429
@editorView = null

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.1",
4+
"version": "0.9.2",
55
"private": true,
66
"description": "A preview of the full source code.",
77
"author": "Fangdun Cai <[email protected]>",

0 commit comments

Comments
 (0)