We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e0eb2c commit fb953d9Copy full SHA for fb953d9
cli/src/components/multiline-input.tsx
@@ -583,12 +583,9 @@ export const MultilineInput = forwardRef<
583
const textStyle: Record<string, unknown> = {
584
bg: 'transparent',
585
fg: inputColor,
586
- }
587
-
588
- if (isPlaceholder) {
589
- textStyle.attributes = TextAttributes.DIM
590
- } else if (textAttributes !== undefined && textAttributes !== 0) {
591
- textStyle.attributes = textAttributes
+ attributes: isPlaceholder
+ ? TextAttributes.DIM
+ : textAttributes ?? TextAttributes.NONE,
592
}
593
594
const cursorFg = theme.info
0 commit comments