Skip to content

Commit 590ea9b

Browse files
committed
test(core): fix invalid win errors in tests
1 parent f10f23e commit 590ea9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/opencode/ui/context_bar.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ function M.render(windows)
175175
vim.schedule(function()
176176
windows = windows or state.windows
177177
local win = windows and windows.input_win
178-
if not win then
178+
if not (win and vim.api.nvim_win_is_valid(win)) then
179179
return
180180
end
181181
local segments = create_winbar_segments()

0 commit comments

Comments
 (0)