 
   onConfirm: (@input) ->
     # FIXME: dont manage allowNextLine independently. Each Pair text-object can handle by themselvs.
-    target = @new 'Pair',
+    @setTarget @new 'Pair',
       pair: @getPair(@input)
       inner: false
-      allowNextLine: @input in @pairChars
-    @setTarget(target)
+      allowNextLine: (@input in @pairChars)
     @processOperation()
 
   getNewText: (text) ->

      timeout: settings.get('flashOnOperateDuration')

  mutateSelections: (fn) ->
    return unless @selectTarget()
    @editor.transact =>
      for selection in @editor.getSelections()
        fn(selection)

  execute: ->
    @mutateSelections (selection) =>

  requireInput: true

  initialize: ->
    @setTarget(@new('MoveRight')) if @isMode('normal')
    @focusInput()

  getInput: ->
