diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-08-09 21:45:52 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-08-09 21:45:52 +0200 |
commit | a9a47d157ab1946d1e286c9695bc68d71305af68 (patch) | |
tree | bd97177c3df8a3671e3d2a0a58ce0609ca80d7dd /src/testdir/test_cd.vim | |
parent | 7f7a8888699bca6df0a45a16db5f0e313383b5f1 (diff) | |
download | vim-git-a9a47d157ab1946d1e286c9695bc68d71305af68.tar.gz |
patch 8.2.1411: when splitting a window localdir is copied but prevdir is notv8.2.1411
Problem: when splitting a window localdir is copied but prevdir is not.
Solution: Also copy prevdir. (closes #6667)
Diffstat (limited to 'src/testdir/test_cd.vim')
-rw-r--r-- | src/testdir/test_cd.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/testdir/test_cd.vim b/src/testdir/test_cd.vim index bd6e3d9a5..8a0fbb247 100644 --- a/src/testdir/test_cd.vim +++ b/src/testdir/test_cd.vim @@ -168,6 +168,15 @@ func Test_prev_dir() call delete('Xdir', 'rf') endfunc +func Test_lcd_split() + let curdir = getcwd() + lcd .. + split + lcd - + call assert_equal(curdir, getcwd()) + quit! +endfunc + func Test_cd_completion() call mkdir('XComplDir1', 'p') call mkdir('XComplDir2', 'p') |