mirror of
https://github.com/atom/atom.git
synced 2026-02-10 14:45:11 -05:00
When decorating a MarkerLayer, get its corresponding DisplayMarkerLayer
This fixes 'folded' line number decorations.
This commit is contained in:
committed by
Antonio Scandurra
parent
a2f75c8337
commit
68659d9698
@@ -200,6 +200,7 @@ class DecorationManager {
|
||||
if (markerLayer.isDestroyed()) {
|
||||
throw new Error('Cannot decorate a destroyed marker layer')
|
||||
}
|
||||
markerLayer = this.displayLayer.getMarkerLayer(markerLayer.id)
|
||||
const decoration = new LayerDecoration(markerLayer, this, decorationParams)
|
||||
let layerDecorations = this.layerDecorationsByMarkerLayer.get(markerLayer)
|
||||
if (layerDecorations == null) {
|
||||
|
||||
Reference in New Issue
Block a user