 # Not directly used.
 class MoveToLineBase extends Motion
   @extend()
-  operatesLinewise: true
+  linewise: true
 
   getDestinationRow: (count) ->
     if count? then count - 1 else (@editor.getLineCount() - 1)

  @extend()
  complete: true
  recordable: false
  operatesInclusively: false
  operatesLinewise: false

  select: (options) ->
    value = for selection in @editor.getSelections()
      if @isLinewise()
        @moveSelectionLinewise(selection, options)
      else if @vimState.mode is 'visual'
        @moveSelectionVisual(selection, options)
      else if @operatesInclusively
        @moveSelectionInclusively(selection, options)
      else
        @moveSelection(selection, options)
      not selection.isEmpty()

    @editor.mergeCursors()
    @editor.mergeIntersectingSelections()
    value

  execute: ->
    for cursor in @editor.getCursors()
      @moveCursor(cursor)
    @editor.mergeCursors()

  moveSelectionLinewise: (selection, options) ->
    selection.modifySelection =>

    @getInput()

  isLinewise: ->
    @linewise

  moveCursor: (cursor) ->
    markPosition = @vimState.mark.get(@input)
