mirror of
https://github.com/neovim/neovim.git
synced 2026-08-03 06:09:14 +00:00
fix(dir): open CWD from unnamed buffer with - mapping #40926
This commit is contained in:
@@ -47,6 +47,10 @@ end
|
||||
|
||||
---@param path string
|
||||
function M.open_parent_path(path)
|
||||
if path == '' then
|
||||
navigate('.')
|
||||
return
|
||||
end
|
||||
path = M.normalize(path)
|
||||
navigate(fs.dirname(path), { name = fs.basename(path), dir = vim.fn.isdirectory(path) == 1 })
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user