diff --git a/ui-tui/src/components/prompts.tsx b/ui-tui/src/components/prompts.tsx index bfc603c51c..c7ced5b31d 100644 --- a/ui-tui/src/components/prompts.tsx +++ b/ui-tui/src/components/prompts.tsx @@ -53,7 +53,9 @@ export function ApprovalPrompt({ onChoice, req, t }: ApprovalPromptProps) { ))} {overflow > 0 ? ( - … +{overflow} more line{overflow === 1 ? '' : 's'} (full text above) + + … +{overflow} more line{overflow === 1 ? '' : 's'} (full text above) + ) : null} diff --git a/ui-tui/src/components/textInput.tsx b/ui-tui/src/components/textInput.tsx index a0f7c42f3b..3f45648212 100644 --- a/ui-tui/src/components/textInput.tsx +++ b/ui-tui/src/components/textInput.tsx @@ -483,15 +483,7 @@ export function TextInput({ return } - if ( - k.upArrow || - k.downArrow || - k.tab || - (k.shift && k.tab) || - k.pageUp || - k.pageDown || - k.escape - ) { + if (k.upArrow || k.downArrow || k.tab || (k.shift && k.tab) || k.pageUp || k.pageDown || k.escape) { return }