   @description: "Add selection onto each matching word within target range"
   withOccurrence: true
   initialize: ->
+    console.log 'mode!', @vimState.mode
     # FIXME don't trying to do everytin in event
     @onDidSelectTarget =>
       swrap.clearProperties(@editor)

  mutateSelection: (selection) =>
    @setTextToRegisterForSelection(selection)
    selection.deleteSelectedText()


class DeleteRight extends Delete
  @extend()

    wasVisual = @isMode('visual')

    if @needStay() and wasVisual
      # console.log 'case-1'
      @cursorPositionManager.save('head', fromProperty: true, allowFallback: true) # visual-stay

    else if @needStay() and not wasVisual
      # console.log 'case-2'
      @cursorPositionManager.save('head') unless @instanceof('Select') # stay

    else
      # console.log 'case-3'
      @preemptDidSelectTarget =>
        @cursorPositionManager.save('start')

