fix(dir): preserve alternate file #41177

This commit is contained in:
Barrett Ruth
2026-08-05 12:36:58 -05:00
committed by GitHub
parent e2c0c63452
commit 9127ed41a5
4 changed files with 24 additions and 1 deletions

View File

@@ -24,6 +24,7 @@ local function edit(path)
local ok, err = pcall(api.nvim_cmd, {
cmd = 'edit',
args = { path },
mods = { keepalt = vim.b.nvim_dir ~= nil },
magic = { file = false, bar = false },
})
navigating = false