mirror of
https://github.com/neovim/neovim.git
synced 2026-08-30 19:11:52 +00:00
feat(dir): open cwd with 1- #40948
This commit is contained in:
@@ -347,9 +347,10 @@ describe('nvim.dir', function()
|
||||
eq('new:2', exec_lua('return vim.g.nvim_dir_provider_list'))
|
||||
end)
|
||||
|
||||
it('maps [count]- to open parent directories', function()
|
||||
it('maps [count]- to open directories', function()
|
||||
make_fixture()
|
||||
n.clear({ args_rm = { '--cmd' }, args = { '--clean' } })
|
||||
local cwd = vim.fs.normalize(fn.getcwd())
|
||||
|
||||
edit(file)
|
||||
feed('-')
|
||||
@@ -365,8 +366,7 @@ describe('nvim.dir', function()
|
||||
feed('1-')
|
||||
poke_eventloop()
|
||||
|
||||
assert_directory(root)
|
||||
eq('alpha.txt', api.nvim_get_current_line())
|
||||
assert_directory(cwd)
|
||||
|
||||
edit(file)
|
||||
feed('2-')
|
||||
|
||||
Reference in New Issue
Block a user