fix(#3172): live filter exception (#3173)

This commit is contained in:
Alexander Courtis 2025-08-04 11:51:42 +10:00 committed by GitHub
parent 65bae44922
commit 0a7fcdf3f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -161,7 +161,7 @@ end
---@return integer
local function calculate_overlay_win_width(self)
local wininfo = vim.fn.getwininfo(self.explorer.view:get_winnr())[1]
local wininfo = vim.fn.getwininfo(self.explorer.view:get_winid())[1]
if wininfo then
return wininfo.width - wininfo.textoff - #self.prefix