Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion lua/opencode/ui/input_window.lua
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,14 @@ function M.setup_autocmds(windows, group)
callback = function()
-- Auto-hide input window when auto_hide is enabled and focus leaves
-- Don't hide if displaying a route (slash command output like /help)
if config.ui.input.auto_hide and not M.is_hidden() and not state.display_route then
-- Don't hide if input contains content
if
config.ui.input.auto_hide
and not M.is_hidden()
and not state.display_route
and #state.input_content == 1
and state.input_content[1] == ''
then
M._hide()
end
end,
Expand Down