         newRanges.push ranges
 
     if (newRanges = _.flatten(newRanges)).length
-      @vimState.flash(newRanges, type: @getFlashType())
+      @flashIfNecessary(newRanges)
     else
       atom.beep()
 

    if mode isnt 'visual' or (@target.isMotion() and submode isnt @target.wise)
      settings.get('flashOnOperate') and (@getName() not in settings.get('flashOnOperateBlacklist'))

  flashChangeIfNecessary: ->
    return unless @needFlash()


      newRanges = for selection in @editor.getSelectionsOrderedByBufferPosition()
        @replaceNumber(selection.getBufferRange(), pattern)
    if (newRanges = _.flatten(newRanges)).length
      @flashIfNecessary(newRanges)
    else
      atom.beep()
    for selection in @editor.getSelections()
