message: check that global searchState is defined separately from statusBar check
diff: @@ -3,6 +3,7 @@ import { Mode, ModeName } from './mode';
  import { VSCodeVimCursorType } from './mode';
  import { VimState } from '../state/vimState';
  import { SearchDirection } from '../state/searchState';
  +import { logger } from '../util/logger';
  export enum VisualBlockInsertionType {
  /**
  @@ -64,11 +65,12 @@ export class SearchInProgressMode extends Mode {
  }
  getStatusBarText(vimState: VimState): string {
  + if (vimState.globalState.searchState === undefined) {
  + logger.error(`SearchInProgressMode.getStatusBarText: vimState.globalState.searchState is undefined.`);
  + return '';
  + }
  const leadingChar =
  - vimState.globalState.searchState !== undefined &&
  - vimState.globalState.searchState.searchDirection === SearchDirection.Backward
  - ? '?'
  - : '/';
  + vimState.globalState.searchState.searchDirection === SearchDirection.Forward ? '/' : '?';
  return `${leadingChar}${vimState.globalState.searchState!.searchString}`;
  }
  