         selection.selectLine(row)
     @hideCursors()
 
-  # Private:
   selectCharacterwise: (oldSubmode) ->
     if @editor.getLastSelection().isEmpty()
       @editor.selectRight()

  constructor: (@vimState) ->
    {@editor, @editorElement} = @vimState

  isNormalMode: ->
    @mode is 'normal'

  isInsertMode: ->
    @mode is 'insert'

  isOperatorPendingMode: ->
    @mode is 'operator-pending'

  isVisualMode: (submode=null) ->
    if submode

      @selectCharacterwise()
    @vimState.operationStack.push new BlockwiseSelect(@vimState)

  resetVisualMode: ->
    @activateVisualMode(@submode)

  activateOperatorPendingMode: ->
    @deactivateInsertMode()
    @setMode('operator-pending')

  resetNormalMode: ->
    @vimState.operationStack.clear()
    @editor.clearSelections()
