fix: result winid is nil (#2508)

This commit is contained in:
yetone
2025-07-22 17:45:14 +08:00
committed by GitHub
parent 7ed3a0e761
commit db56901594

View File

@@ -197,7 +197,7 @@ end
function Sidebar:set_code_winhl()
if not self.code.winid or not api.nvim_win_is_valid(self.code.winid) then return end
if not self.containers.result or not api.nvim_win_is_valid(self.containers.result.winid) then return end
if not Utils.is_valid_container(self.containers.result, true) then return end
if Utils.should_hidden_border(self.code.winid, self.containers.result.winid) then
Utils.debug("setting winhl")