Skip to content

Commit 52a1c99

Browse files
rosdsalfonsorosd
andauthored
feat(#2530): keep alt filename on node.open.replace_tree_buffer (#2531)
Co-authored-by: Alfonso Ros <alfonso.ros@apex.ai>
1 parent 80cfead commit 52a1c99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

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

300300
local function edit_in_current_buf(filename)
301301
require("nvim-tree.view").abandon_current_window()
302-
vim.cmd("keepjumps edit " .. vim.fn.fnameescape(filename))
302+
vim.cmd("keepalt keepjumps edit " .. vim.fn.fnameescape(filename))
303303
end
304304

305305
function M.fn(mode, filename)

0 commit comments

Comments
 (0)