vim-patch:8.2.1411: when splitting a window localdir is copied but prevdir is not

Problem:    when splitting a window localdir is copied but prevdir is not.
Solution:   Also copy prevdir. (closes vim/vim#6667)
a9a47d157a
This commit is contained in:
zeertzjq
2021-10-17 22:04:53 +08:00
parent 60584c0245
commit 36290a2ebd
2 changed files with 11 additions and 0 deletions

View File

@@ -192,6 +192,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_from_non_existing_dir()
CheckNotMSWindows