Skip to content

Commit cb09a6f

Browse files
committed
fix(picker): error when opening a picker form the input window
this should fix #271
1 parent 533f0f2 commit cb09a6f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/opencode/ui/input_window.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ local function apply_dimensions(windows, height)
6262
local width_ratio = state.pre_zoom_width and config.ui.zoom_width or config.ui.window_width
6363
local width = math.floor(total_width * width_ratio)
6464

65-
vim.api.nvim_win_set_config(windows.input_win, { width = width, height = height })
65+
pcall(vim.api.nvim_win_set_config, windows.input_win, { width = width, height = height })
6666
end
6767

6868
function M.create_buf()

0 commit comments

Comments
 (0)