feat(#2530): keep alt filename on node.open.replace_tree_buffer (#2531)

Co-authored-by: Alfonso Ros <alfonso.ros@apex.ai>
This commit is contained in:
Alfonso Ros 2023-11-19 04:38:55 +01:00 committed by GitHub
parent 80cfeadf17
commit 52a1c99bf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -299,7 +299,7 @@ end
local function edit_in_current_buf(filename) local function edit_in_current_buf(filename)
require("nvim-tree.view").abandon_current_window() require("nvim-tree.view").abandon_current_window()
vim.cmd("keepjumps edit " .. vim.fn.fnameescape(filename)) vim.cmd("keepalt keepjumps edit " .. vim.fn.fnameescape(filename))
end end
function M.fn(mode, filename) function M.fn(mode, filename)