File tree Expand file tree Collapse file tree
packages/opencode/src/cli/cmd/tui/component/prompt Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments