Skip to content

Commit b6c1df4

Browse files
committed
textarea highlight cursor color
1 parent 125af82 commit b6c1df4

File tree

1 file changed

+1
-5
lines changed
  • packages/opencode/src/cli/cmd/tui/component/prompt

1 file changed

+1
-5
lines changed

packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -562,10 +562,6 @@ export function Prompt(props: PromptProps) {
562562
}
563563
})
564564

565-
createEffect(() => {
566-
renderer.setCursorColor(highlight())
567-
})
568-
569565
return (
570566
<>
571567
<Autocomplete
@@ -777,7 +773,7 @@ export function Prompt(props: PromptProps) {
777773
ref={(r: TextareaRenderable) => (input = r)}
778774
onMouseDown={(r: MouseEvent) => r.target?.focus()}
779775
focusedBackgroundColor={theme.backgroundElement}
780-
cursorColor={theme.primary}
776+
cursorColor={highlight()}
781777
syntaxStyle={syntax()}
782778
/>
783779
<box flexDirection="row" flexShrink={0} paddingTop={1} gap={1}>

0 commit comments

Comments
 (0)