Skip to content

Commit

Permalink
fix: call initializeDecorations inside setModel
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Jan 16, 2021
1 parent b331f08 commit 006300c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions lib/minimap-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,7 @@ class MinimapElement {
*/
setModel (minimap) {
this.minimap = minimap
this.DecorationManagement.initializeDecorations(this.minimap)

this.subscriptions.add(

Expand Down
2 changes: 0 additions & 2 deletions lib/minimap.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,6 @@ export default class Minimap {
*/
this.flushChangesTimer = null

this.initializeDecorations()

if (atom.views.getView(this.textEditor).getScrollTop != null) {
this.adapter = new StableAdapter(this.textEditor)
} else {
Expand Down

0 comments on commit 006300c

Please sign in to comment.