Skip to content

Commit 4c13f9a

Browse files
committed
fix visual cursor contrast on dark themes
1 parent 3f4596b commit 4c13f9a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/opencode/src/cli/cmd/tui/component/prompt

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1766,7 +1766,7 @@ export function Prompt(props: PromptProps) {
17661766
input.visualCursor.visualCol) *
17671767
4
17681768
buffer.buffers.fg.set(theme.text.buffer.subarray(0, 4), cursorOffset)
1769-
buffer.buffers.bg.set(theme.backgroundElement.buffer.subarray(0, 4), cursorOffset)
1769+
buffer.buffers.bg.set(selectedForeground(theme, theme.text).buffer.subarray(0, 4), cursorOffset)
17701770
}
17711771
}
17721772
props.ref?.(ref)

0 commit comments

Comments
 (0)