Skip to content

Commit 3e30b31

Browse files
committed
fix(winbar): ensure win is valid before setting keymaps
1 parent ed40313 commit 3e30b31

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/dap-view/options/winbar/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ end
9696

9797
---@param bufnr? integer
9898
M.set_action_keymaps = function(bufnr)
99-
if bufnr or state.bufnr then
99+
if (bufnr or state.bufnr) and util.is_win_valid(state.winnr) then
100100
local winbar = setup.config.winbar
101101

102102
local win_width = api.nvim_win_get_width(state.winnr)

0 commit comments

Comments
 (0)