We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a23120 commit ccfd2dcCopy full SHA for ccfd2dc
lua/nvim-tree/live-filter.lua
@@ -27,8 +27,8 @@ local function reset_filter(node_)
27
:iterate()
28
end
29
30
-local overlay_bufnr = nil
31
-local overlay_winnr = nil
+local overlay_bufnr = 0
+local overlay_winnr = 0
32
33
local function remove_overlay()
34
if view.View.float.enable and view.View.float.quit_on_focus_loss then
@@ -46,8 +46,8 @@ local function remove_overlay()
46
47
vim.api.nvim_win_close(overlay_winnr, true)
48
vim.api.nvim_buf_delete(overlay_bufnr, { force = true })
49
- overlay_bufnr = nil
50
- overlay_winnr = nil
+ overlay_bufnr = 0
+ overlay_winnr = 0
51
52
if M.filter == "" then
53
M.clear_filter()
0 commit comments