Skip to content

Commit 066dd1c

Browse files
committed
fix(ui/input_window): allow submission when completion popup is visible
Remove guard that returned early when the completion menu was visible
1 parent 2b7e33b commit 066dd1c

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

lua/opencode/ui/input_window.lua

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,6 @@ function M.handle_submit()
121121
return false
122122
end
123123
---@cast windows { input_buf: integer }
124-
local completion = require('opencode.ui.completion')
125-
if completion.is_completion_visible() then
126-
return false
127-
end
128124

129125
local input_content = table.concat(vim.api.nvim_buf_get_lines(windows.input_buf, 0, -1, false), '\n')
130126
vim.api.nvim_buf_set_lines(windows.input_buf, 0, -1, false, {})

0 commit comments

Comments
 (0)