       underlineColor: "255, 165, 0"}
     @defaultOpacity = 50
 
-    @subscribe @editorView, 'cursor:moved', @updateSelectedLine
-    @subscribe @editorView, 'selection:changed', @updateSelectedLine
-    @subscribe @editorView.getPane(), 'pane:active-item-changed',
-      @updateSelectedLine
+    @subscribe @editorView, 'editor:display-updated', @updateSelectedLine
     atom.workspaceView.on 'pane:item-removed', @destroy
 
     @updateUnderlineStyle()

              startLine = @findLineElementForRow(@editorView, start)
              endLine = @findLineElementForRow(@editorView, end)
              if @editorView.constructor.name is "ReactEditorView"
                pos = $(startLine).css("position")
                topPX = $(startLine).css("top")
                selectionStyleAttrs[0] += "position: #{pos}; top: #{topPX}; width: 100%"
                pos = $(endLine).css("position")
                topPX = $(endLine).css("top")
                selectionStyleAttrs[1] += "position: #{pos}; top: #{topPX}; width: 100%"

              $(startLine).attr 'style', selectionStyleAttrs[0]
              $(endLine).attr 'style', selectionStyleAttrs[1]

    @showHighlight()

  resetBackground: ->
    $('.line').css('border-top','')
              .css('border-bottom','')
              .css('margin-bottom','')
              .css('margin-top','')
    $('.line').each (index, line) ->
      if $(line).attr('style')?.indexOf('background') isnt -1
        top = $(line).css('top')
        $(line).attr 'style', "position: absolute; top: #{top};" if top?

  makeLineStyleAttr: ->
    styleAttr = ''
