   flashTarget: false
 
   execute: ->
-    return unless @isMode('visual')
-
     @withUndoJoin =>
       @eachSelection (selection) =>
         @countTimes =>

  flashTarget: false

  execute: ->
    return unless @isMode('visual')

    @withUndoJoin =>
      selections = @editor.getSelectionsOrderedByBufferPosition()
      selections.reverse() if @direction is 'down'

disposableByEditor = new Map
# -------------------------
class MoveSelectedText extends TransformString
  @commandScope: 'atom-text-editor.vim-mode-plus.visual-mode'

  countTimes: (fn) ->
    _.times @getCount(), ->
      fn()
