diff --git a/ui-tui/src/components/textInput.tsx b/ui-tui/src/components/textInput.tsx index a24100169c..60e69963cc 100644 --- a/ui-tui/src/components/textInput.tsx +++ b/ui-tui/src/components/textInput.tsx @@ -793,6 +793,7 @@ export function TextInput({ const [cur, setCur] = useState(() => cursorSnapshotRef?.current?.value === value ? cursorSnapshotRef.current.cursor : value.length ) + const [sel, setSel] = useState(null) const fwdDel = useFwdDelete(focus) const termFocus = useTerminalFocus()