diff options
| author | Keith Lyons <[email protected]> | 2025-07-17 20:45:42 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-18 00:45:42 +0000 |
| commit | 8ade3e7ee26c1dedd105a20fa769c68e4103b75d (patch) | |
| tree | 38a93971170bf301713ee490db1a34cad1be5d1d /packages/cli/src/ui/components/InputPrompt.tsx | |
| parent | 584a50a3422fc543a0f861cd946fa0403acc12f0 (diff) | |
feat(ui): hide cursor when terminal is unfocused (#4012)
Diffstat (limited to 'packages/cli/src/ui/components/InputPrompt.tsx')
| -rw-r--r-- | packages/cli/src/ui/components/InputPrompt.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/cli/src/ui/components/InputPrompt.tsx b/packages/cli/src/ui/components/InputPrompt.tsx index 7cefdc08..01ed8db1 100644 --- a/packages/cli/src/ui/components/InputPrompt.tsx +++ b/packages/cli/src/ui/components/InputPrompt.tsx @@ -453,7 +453,7 @@ export const InputPrompt: React.FC<InputPromptProps> = ({ display = display + ' '.repeat(inputWidth - currentVisualWidth); } - if (visualIdxInRenderedSet === cursorVisualRow) { + if (focus && visualIdxInRenderedSet === cursorVisualRow) { const relativeVisualColForHighlight = cursorVisualColAbsolute; if (relativeVisualColForHighlight >= 0) { |
