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

View File

@@ -299,7 +299,7 @@ end
local function edit_in_current_buf(filename)
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
function M.fn(mode, filename)