diff --git a/src/cli/components/InputRich.tsx b/src/cli/components/InputRich.tsx index 8c53aff..7d44c4e 100644 --- a/src/cli/components/InputRich.tsx +++ b/src/cli/components/InputRich.tsx @@ -89,7 +89,8 @@ export function Input({ // Second CTRL-C - call onExit callback which handles stats and exit if (onExit) onExit(); } else { - // First CTRL-C - start 1-second timer + // First CTRL-C - wipe input and start 1-second timer + setValue(""); setCtrlCPressed(true); if (ctrlCTimerRef.current) clearTimeout(ctrlCTimerRef.current); ctrlCTimerRef.current = setTimeout(() => {