   collapseView: () ->
     @expanded = false
     @expMarker?.destroy()
-    @initMarker()
+    @decorateMarker()
 
   createView: (opts) ->
     {content, fade, loading} = opts

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

  lineRange: (start, end) ->
    [[start, 0], [end, @editor.lineTextForBufferRow(end).length]]

  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) =>
