Skip to content

Commit fed6941

Browse files
committed
fix(completion): completion were broken after last change
1 parent c505554 commit fed6941

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lua/opencode/ui/ui.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,13 @@ function M.focus_input(opts)
125125
return
126126
end
127127

128+
if vim.api.nvim_get_current_win() == windows.input_win then
129+
if opts.start_insert then
130+
vim.cmd('startinsert!')
131+
end
132+
return
133+
end
134+
128135
vim.api.nvim_set_current_win(windows.input_win)
129136

130137
if opts.restore_position and state.last_input_window_position then

0 commit comments

Comments
 (0)