     @cursorMovedTimeoutId = setTimeout @onCursorMovedAfter, 0
 
   onCursorMovedAfter: =>
-    @destroyReferenceMarkers()
-    @createReferenceMarkers @ripper.find @editor.getSelectedBufferRange().start
+    @destroyReferences()
+    @createReferences()
 
 
   ###


  parse: =>
    @editorView.off 'cursor:moved', @onCursorMoved
    @destroyReferenceMarkers()
    @destroyErrorMarkers()
    text = @editor.buffer.getText()
    if text isnt @cachedText
      @cachedText = text

      @editor.decorateMarker marker, type: 'gutter', class: 'refactor-error'
      marker

  destroyReferences: ->
    delete @references
    return unless @markers?
    for marker in @markers
      marker.destroy()
    delete @markers

  createReferences: ->
    @references = @ripper.find @editor.getSelectedBufferRange().start
    @markers = for range in @references
      marker = @editor.markBufferRange range
      @editor.decorateMarker marker, type: 'highlight', class: 'refactor-reference'
      marker
