diff --git a/lib/dot-marker-view.coffee b/lib/dot-marker-view.coffee index 64e4a4e..25e3346 100644 --- a/lib/dot-marker-view.coffee +++ b/lib/dot-marker-view.coffee @@ -28,8 +28,8 @@ class DotMarkerView @hide() if @hidden() - size = atom.config.get('atom-color-highlight.dotMarkersSize') - spacing = atom.config.get('atom-color-highlight.dotMarkersSpacing') + size = @getSize() + spacing = @getSpacing() @markersByRows[range.start.row] ?= 0 @position ?= @markersByRows[range.start.row] @markersByRows[range.start.row]++ @@ -45,3 +45,6 @@ class DotMarkerView @element.style.left = (left + spacing + @position * (size + spacing)) + 'px' @element.style.backgroundColor = color @element.style.color = colorText + + getSize: -> atom.config.get('atom-color-highlight.dotMarkersSize') + getSpacing: -> atom.config.get('atom-color-highlight.dotMarkersSpacing')