   lineRange: (start, end) ->
     [[start, 0], [end, @editor.lineTextForBufferRow(end).length]]
 
-  initMarker: ->
-    @marker = @editor.markBufferRange @lineRange(@start, @end)
-    @marker.result = @
+  decorateMarker: ->
     mark = item: @view, avoidOverflow: false
     switch @type
       when 'inline' then mark.type = 'overlay'; mark.class = 'ink-overlay'
       when 'block' then mark.type = 'block'; mark.position = 'after'
     @decoration = @editor.decorateMarker @marker, mark
+
+  initMarker: ->
+    @marker = @editor.markBufferRange @lineRange(@start, @end)
+    @marker.result = @
+    @decorateMarker()
     @disposables.add @marker.onDidChange (e) => @checkMarker e
     if @type == 'inline'
       resizer.listenTo @editor.editorElement, (el) =>

  expandView: () ->
    @expanded = true
    @decoration?.destroy()
    @expMarker = @editor.markBufferRange [[@start, 0], [@start, 1]]
    mark =
      item: @view
      avoidOverflow: false

  collapseView: () ->
    @expanded = false
    @expMarker?.destroy()
    @decorateMarker()

  createView: (opts) ->
    {content, fade, loading} = opts
