Skip to content

Commit fca0b67

Browse files
authored
fix(#3045): wipe scratch buffers for full name and show info popups (#3050)
1 parent d529a99 commit fca0b67

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lua/nvim-tree/actions/node/file-popup.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ local function setup_window(node)
5050
file_path = node.absolute_path,
5151
}
5252
local bufnr = vim.api.nvim_create_buf(false, true)
53+
vim.bo[bufnr].bufhidden = "wipe"
5354
vim.api.nvim_buf_set_lines(bufnr, 0, -1, false, lines)
5455
vim.api.nvim_win_set_buf(winnr, bufnr)
5556
end

lua/nvim-tree/renderer/components/full-name.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ local function show()
8181

8282
vim.api.nvim_buf_add_highlight(0, ns_id, details.hl_group, 0, col, details.end_col)
8383
end
84-
vim.cmd([[ setlocal nowrap cursorline noswapfile nobuflisted buftype=nofile bufhidden=hide ]])
84+
vim.cmd([[ setlocal nowrap cursorline noswapfile nobuflisted buftype=nofile bufhidden=wipe ]])
8585
end)
8686
end
8787

0 commit comments

Comments
 (0)