Просмотр исходного кода

textarea highlight cursor color

Sebastian Herrlinger 2 месяцев назад
Родитель
Сommit
b6c1df41fb
1 измененных файлов с 1 добавлено и 5 удалено
  1. 1 5
      packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx

+ 1 - 5
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}>