diff options
| author | Marco Hinz <mh.codebro@gmail.com> | 2019-04-13 12:50:36 +0200 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2019-04-15 21:04:16 +0200 |
| commit | f891131c6bb2ab399130e28c9e483e071dafcbcb (patch) | |
| tree | c98d3ba4ccae34914701f5e93f9370ee632c0ab0 /test | |
| parent | 9a5488c2a67e0066d4f2f8aeaf8058deaa58ce7a (diff) | |
| download | rneovim-f891131c6bb2ab399130e28c9e483e071dafcbcb.tar.gz rneovim-f891131c6bb2ab399130e28c9e483e071dafcbcb.tar.bz2 rneovim-f891131c6bb2ab399130e28c9e483e071dafcbcb.zip | |
options: properly reset directories on 'autochdir' (#9894)
Fixes https://github.com/neovim/neovim/issues/9892
Diffstat (limited to 'test')
| -rw-r--r-- | test/functional/ex_cmds/cd_spec.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/functional/ex_cmds/cd_spec.lua b/test/functional/ex_cmds/cd_spec.lua index bc2b365b30..283fcf9672 100644 --- a/test/functional/ex_cmds/cd_spec.lua +++ b/test/functional/ex_cmds/cd_spec.lua @@ -286,6 +286,15 @@ describe("getcwd()", function () command("call delete('../"..directories.global.."', 'd')") eq("", helpers.eval("getcwd()")) end) + + it("works with 'autochdir' after local directory was set (#9892)", function() + local curdir = cwd() + command('lcd ' .. directories.global) + command('lcd -') + command('set autochdir') + command('edit ' .. directories.global .. '/foo') + eq(curdir .. pathsep .. directories.global, cwd()) + end) end) |