We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12f3adb commit f2ed591Copy full SHA for f2ed591
1 file changed
packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx
@@ -299,7 +299,8 @@ export function Prompt(props: PromptProps) {
299
onSelect: (dialog) => {
300
if (autocomplete.visible) return
301
if (!input.focused) return
302
- if (vimEnabled() && store.mode === "normal" && vimState.isInsert()) {
+ if (vimEnabled() && store.mode === "normal" && vimState.mode() !== "normal") {
303
+ if (vimState.isVisual()) clearSelection(input)
304
vimState.setMode("normal")
305
setStore("interrupt", 0)
306
dialog.clear()
0 commit comments