Skip to content

Commit

Permalink
🐛 Fix requesting a repaint when the minimap is not attached yet
Browse files Browse the repository at this point in the history
  • Loading branch information
abe33 committed Apr 16, 2016
1 parent 8dde8fa commit 07dbde8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/minimap-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ export default class MinimapElement {
'minimap.ignoreWhitespacesInTokens': (ignoreWhitespacesInTokens) => {
this.ignoreWhitespacesInTokens = ignoreWhitespacesInTokens

this.requestForcedUpdate()
if (this.attached) { this.requestForcedUpdate() }
},

'editor.preferredLineLength': () => {
Expand Down

0 comments on commit 07dbde8

Please sign in to comment.