message: Refactor performSearchMovement args into IPerformSearchMovementArgs
diff: @@ -1710,7 +1710,13 @@ function searchCurrentWord(position: Position, vimState: VimState, direction: Se
  ? vimState.cursorPosition.getWordLeft(true)
  : vimState.cursorPosition;
  - return performSearchMovement(currentWord, vimState, direction, isExact, searchStartCursorPosition);
  + return performSearchMovement({
  + needle: currentWord,
  + vimState,
  + direction,
  + isExact,
  + searchStartCursorPosition
  + });
  }
  function searchCurrentSelection (vimState: VimState, direction: SearchDirection, isExact: boolean) {
  @@ -1728,29 +1734,43 @@ function searchCurrentSelection (vimState: VimState, direction: SearchDirection,
  ? vimState.lastVisualSelectionStart.getLeft()
  : vimState.lastVisualSelectionEnd.getRight();
  - return performSearchMovement(currentSelection, vimState, direction, isExact, searchStartCursorPosition);
  + return performSearchMovement({
  + needle: currentSelection,
  + vimState,
  + direction,
  + isExact,
  + searchStartCursorPosition
  + });
  }
  -function performSearchMovement (needle: string | undefined, vimState: VimState, direction: SearchDirection, isExact: boolean, searchStartCursorPosition: Position) {
  - if (needle === undefined || needle === null || needle.length === 0) {
  - return vimState;
  +interface IPerformSearchMovementArgs {
  + needle: string | undefined,
  + vimState: VimState,
  + direction: SearchDirection,
  + isExact: boolean,
  + searchStartCursorPosition: Position
  }
  - const searchString = isExact
  - ? `\\b${needle}\\b`
  - : needle;
  +function performSearchMovement(args: IPerformSearchMovementArgs) {
  + if (args.needle === undefined || args.needle === null || args.needle.length === 0) {
  + return args.vimState;
  + }
  +
  + const searchString = args.isExact
  + ? `\\b${args.needle}\\b`
  + : args.needle;
  // Start a search for the given term.
  - vimState.globalState.searchState = new SearchState(
  - direction, vimState.cursorPosition, searchString, { isRegex: isExact }
  + args.vimState.globalState.searchState = new SearchState(
  + args.direction, args.vimState.cursorPosition, searchString, { isRegex: args.isExact }
  );
  - vimState.cursorPosition = vimState.globalState.searchState.getNextSearchMatchPosition(searchStartCursorPosition).pos;
  + args.vimState.cursorPosition = args.vimState.globalState.searchState.getNextSearchMatchPosition(args.searchStartCursorPosition).pos;
  // Turn one of the highlighting flags back on (turned off with :nohl)
  - vimState.globalState.hl = true;
  + args.vimState.globalState.hl = true;
  - return vimState;
  + return args.vimState;
  }
  @RegisterAction
  