diff options
| author | Sebastian Herrlinger <[email protected]> | 2025-11-24 20:50:54 +0100 |
|---|---|---|
| committer | Sebastian Herrlinger <[email protected]> | 2025-11-24 20:51:07 +0100 |
| commit | b6c1df41fba66e43dbef26a613a1a4d246e13b94 (patch) | |
| tree | 069435c191eaff17c8e2e125388953f811a21292 /packages | |
| parent | 125af820d02b6c0825099fc08d5000e1eb0786ca (diff) | |
| download | opencode-b6c1df41fba66e43dbef26a613a1a4d246e13b94.tar.gz opencode-b6c1df41fba66e43dbef26a613a1a4d246e13b94.zip | |
textarea highlight cursor color
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx b/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx index 7a4813702..43aeef213 100644 --- a/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx +++ b/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx @@ -562,10 +562,6 @@ export function Prompt(props: PromptProps) { } }) - createEffect(() => { - renderer.setCursorColor(highlight()) - }) - return ( <> <Autocomplete @@ -777,7 +773,7 @@ export function Prompt(props: PromptProps) { ref={(r: TextareaRenderable) => (input = r)} onMouseDown={(r: MouseEvent) => r.target?.focus()} focusedBackgroundColor={theme.backgroundElement} - cursorColor={theme.primary} + cursorColor={highlight()} syntaxStyle={syntax()} /> <box flexDirection="row" flexShrink={0} paddingTop={1} gap={1}> |
