Skip to content

Commit 0a7fcdf

Browse files
authored
fix(#3172): live filter exception (#3173)
1 parent 65bae44 commit 0a7fcdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/nvim-tree/explorer/live-filter.lua

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

162162
---@return integer
163163
local function calculate_overlay_win_width(self)
164-
local wininfo = vim.fn.getwininfo(self.explorer.view:get_winnr())[1]
164+
local wininfo = vim.fn.getwininfo(self.explorer.view:get_winid())[1]
165165

166166
if wininfo then
167167
return wininfo.width - wininfo.textoff - #self.prefix

0 commit comments

Comments
 (0)