Skip to content

Commit

Permalink
fix: move ignoreWhitespacesInTokens to CanvasDrawer
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Jan 12, 2021
1 parent ec7015b commit b8d899a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions 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 @@ -311,7 +311,7 @@ class MinimapElement {
}),

atom.config.observe('minimap.ignoreWhitespacesInTokens', (ignoreWhitespacesInTokens) => {
this.ignoreWhitespacesInTokens = ignoreWhitespacesInTokens
this.CanvasDrawer.ignoreWhitespacesInTokens = ignoreWhitespacesInTokens

if (this.attached) { this.requestForcedUpdate() }
}),
Expand Down
1 change: 1 addition & 0 deletions lib/mixins/canvas-drawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export default class CanvasDrawer {
this.minimap = undefined
// set by minimapElement
this.displayCodeHighlights = undefined
this.ignoreWhitespacesInTokens = undefined
}
/**
* Initializes the canvas elements needed to perform the `Minimap` rendering.
Expand Down

0 comments on commit b8d899a

Please sign in to comment.