From 0e6fe002da96ee5b85e9dd707a2b7938a47e3f58 Mon Sep 17 00:00:00 2001 From: Philip Peterson Date: Sat, 7 Jun 2025 20:50:00 -0700 Subject: [PATCH] Fixes --- lib/components/term-group.tsx | 2 +- typings/hyper.d.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/components/term-group.tsx b/lib/components/term-group.tsx index 441d1c0b..5e6e66ec 100644 --- a/lib/components/term-group.tsx +++ b/lib/components/term-group.tsx @@ -86,7 +86,7 @@ class TermGroup_ extends React.PureComponent { modifierKeys: this.props.modifierKeys, padding: this.props.padding, cleared: session.cleared, - search: session.search?.asMutable() ?? null, + search: session.search, cols: session.cols, rows: session.rows, copyOnSelect: this.props.copyOnSelect, diff --git a/typings/hyper.d.ts b/typings/hyper.d.ts index a35e9dfa..9db46663 100644 --- a/typings/hyper.d.ts +++ b/typings/hyper.d.ts @@ -1,6 +1,6 @@ // eslint-disable-next-line eslint-comments/disable-enable-pair /* eslint-disable import/order */ -import type {Immutable} from 'seamless-immutable'; +import type {Immutable, ImmutableDate} from 'seamless-immutable'; import type Client from '../lib/utils/rpc'; declare global { @@ -387,7 +387,7 @@ export type TermProps = { rows: number | null; screenReaderMode: boolean; scrollback: number; - search: Date | null; + search: ImmutableDate | null; searchAddon: SearchAddon | null; selectionColor: string; term: Terminal | null;