This commit is contained in:
A.K.M. Adib
2026-01-24 10:54:39 -05:00
parent 84e882770b
commit 2be25fefe2
5 changed files with 5 additions and 47 deletions
@@ -45,17 +45,8 @@ export const StatusDisplay: React.FC<StatusDisplayProps> = ({
}
if (uiState.showEscapePrompt) {
const isPromptEmpty = uiState.buffer.text.length === 0;
const hasHistory = uiState.history.length > 0;
if (isPromptEmpty && !hasHistory) {
return null;
}
return (
<Text color={theme.text.secondary}>
Press Esc again to {isPromptEmpty ? 'rewind' : 'clear prompt'}.
</Text>
<Text color={theme.text.secondary}>Press Esc again to clear prompt.</Text>
);
}