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

  onParseEnd: (errors) =>
    if errors?
      @createErrorMarkers errors
    @updateReferences()
    @editorView.off 'cursor:moved', @onCursorMoved
    @editorView.on 'cursor:moved', @onCursorMoved


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

  destroyReferenceMarkers: ->
    return unless @markers?
