Skip to content

Commit ca47915

Browse files
committed
fix: visual cursor contrast
1 parent 4c13f9a commit ca47915

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ export function Prompt(props: PromptProps) {
284284
}
285285
const visual = vimState.isVisual()
286286
input.cursorColor = theme.text
287-
input.showCursor = true
287+
input.showCursor = !visual
288288
input.selectionBg = visual ? theme.secondary : undefined
289289
input.selectionFg = visual ? selectedForeground(theme, theme.secondary) : undefined
290290
})
@@ -1765,8 +1765,8 @@ export function Prompt(props: PromptProps) {
17651765
input.x +
17661766
input.visualCursor.visualCol) *
17671767
4
1768-
buffer.buffers.fg.set(theme.text.buffer.subarray(0, 4), cursorOffset)
1769-
buffer.buffers.bg.set(selectedForeground(theme, theme.text).buffer.subarray(0, 4), cursorOffset)
1768+
buffer.buffers.fg.set(selectedForeground(theme, theme.text).buffer.subarray(0, 4), cursorOffset)
1769+
buffer.buffers.bg.set(theme.text.buffer.subarray(0, 4), cursorOffset)
17701770
}
17711771
}
17721772
props.ref?.(ref)

0 commit comments

Comments
 (0)