       # Prevent autoscroll to closing char on `change-surround-any-pair`.
       autoscroll = selection.isLastSelection() and not @operator.supportEarlySelect
       swrap(selection).setBufferRange(range, {autoscroll})
-
       return true
-    else
-      return false
 
   # to override
   getRange: ->

class PreviousSelection extends TextObject
  @extend()
  wise: null

  select: ->
    {properties, submode} = @vimState.previousSelection
    if properties? and submode?
      @selectSucceeded = true
      @wise = submode
      selection = @editor.getLastSelection()
      swrap(selection).selectByProperties(properties, keepGoalColumn: false)

class PersistentSelection extends TextObject
  @extend(false)
  wise: null

  select: ->
    {persistentSelection} = @vimState
    unless persistentSelection.isEmpty()
      persistentSelection.setSelectedBufferRanges()
      @selectSucceeded = true
      @wise = swrap.detectWise(@editor)
class APersistentSelection extends PersistentSelection
  @extend()
class InnerPersistentSelection extends PersistentSelection

    if range = @getRange(selection)
      swrap(selection).setBufferRange(range, {reversed: @reversed ? @backward})
      selection.cursor.autoscroll()
      return true
class SearchMatchBackward extends SearchMatchForward
  @extend()
  backward: true
