We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 533f0f2 commit cb09a6fCopy full SHA for cb09a6f
1 file changed
lua/opencode/ui/input_window.lua
@@ -62,7 +62,7 @@ local function apply_dimensions(windows, height)
62
local width_ratio = state.pre_zoom_width and config.ui.zoom_width or config.ui.window_width
63
local width = math.floor(total_width * width_ratio)
64
65
- vim.api.nvim_win_set_config(windows.input_win, { width = width, height = height })
+ pcall(vim.api.nvim_win_set_config, windows.input_win, { width = width, height = height })
66
end
67
68
function M.create_buf()
0 commit comments