File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -137,10 +137,7 @@ class MinimapElement {
137137 * @access private
138138 */
139139 this . textOpacity = undefined
140- /**
141- * @access private
142- */
143- this . displayCodeHighlights = undefined
140+
144141 /**
145142 * @access private
146143 */
@@ -262,7 +259,7 @@ class MinimapElement {
262259 } ) ,
263260
264261 atom . config . observe ( 'minimap.displayCodeHighlights' , ( displayCodeHighlights ) => {
265- this . displayCodeHighlights = displayCodeHighlights
262+ this . CanvasDrawer . displayCodeHighlights = displayCodeHighlights
266263
267264 if ( this . attached ) { this . requestForcedUpdate ( ) }
268265 } ) ,
@@ -901,7 +898,7 @@ class MinimapElement {
901898 * highlights or not
902899 */
903900 setDisplayCodeHighlights ( displayCodeHighlights ) {
904- this . displayCodeHighlights = displayCodeHighlights
901+ this . CanvasDrawer . displayCodeHighlights = displayCodeHighlights
905902 if ( this . attached ) { this . requestForcedUpdate ( ) }
906903 }
907904
Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ export default class CanvasDrawer {
1717 constructor ( ) {
1818 // set in setModel of minimapElement
1919 this . minimap = undefined
20+ // set by minimapElement
21+ this . displayCodeHighlights = undefined
2022
2123 /**
2224 * This MinimapElement's DOMStylesReader
You can’t perform that action at this time.
0 commit comments