We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
a
1 parent 44d22ba commit 84d9ae0Copy full SHA for 84d9ae0
1 file changed
lua/opencode/ui/ui.lua
@@ -131,7 +131,9 @@ function M.focus_input(opts)
131
pcall(vim.api.nvim_win_set_cursor, 0, state.last_input_window_position)
132
end
133
if vim.api.nvim_get_current_win() == windows.input_win and opts.start_insert then
134
- vim.api.nvim_feedkeys('a', 'n', false)
+ if vim.fn.mode() ~= 'i' then
135
+ vim.api.nvim_feedkeys('a', 'n', false)
136
+ end
137
138
139
0 commit comments