message: Slight cleanup in `BaseMovement`
diff: @@ -59,8 +59,6 @@ export abstract class BaseMovement extends BaseAction {
  */
  public setsDesiredColumnToEOL = false;
  - protected minCount = 1;
  - protected maxCount = 99999;
  protected selectionType = SelectionType.Concatenating;
  constructor(keysPressed?: string[], isRepeat?: boolean) {
  @@ -96,7 +94,7 @@ export abstract class BaseMovement extends BaseAction {
  *
  * Some movements operate over different ranges when used for operators.
  */
  - public async execActionForOperator(
  + protected async execActionForOperator(
  position: Position,
  vimState: VimState,
  firstIteration: boolean,
  @@ -119,12 +117,15 @@ export abstract class BaseMovement extends BaseAction {
  let prevResult = failedMovement(vimState);
  let firstMovementStart = position;
  - count = clamp(count, this.minCount, this.maxCount);
  + count = clamp(count, 1, 99999);
  for (let i = 0; i < count; i++) {
  const firstIteration = i === 0;
  const lastIteration = i === count - 1;
  - result = await this.createMovementResult(position, vimState, firstIteration, lastIteration);
  + result =
  + vimState.recordedState.operator && lastIteration
  + ? await this.execActionForOperator(position, vimState, firstIteration, lastIteration)
  + : await this.execAction(position, vimState, firstIteration, lastIteration);
  if (result instanceof Position) {
  /**
  @@ -153,19 +154,6 @@ export abstract class BaseMovement extends BaseAction {
  return result;
  }
  - protected async createMovementResult(
  - position: Position,
  - vimState: VimState,
  - firstIteration: boolean,
  - lastIteration: boolean
  - ): Promise<Position | IMovement> {
  - const result =
  - vimState.recordedState.operator && lastIteration
  - ? await this.execActionForOperator(position, vimState, firstIteration, lastIteration)
  - : await this.execAction(position, vimState, firstIteration, lastIteration);
  - return result;
  - }
  -
  protected adjustPosition(position: Position, result: IMovement, lastIteration: boolean) {
  if (!lastIteration) {
  position = result.stop.getRightThroughLineBreaks();
  