1
0
forked from aniani/vim

patch 8.2.1967: the session file does not restore the alternate file

Problem:    The session file does not restore the alternate file.
Solution:   Add ":balt".  Works like ":badd" and also sets the buffer as the
            alternate file.  Use it in the session file. (closes #7269,
            closes #6714)
This commit is contained in:
Bram Moolenaar
2020-11-07 18:41:10 +01:00
parent cbcd9cbd77
commit 59d8e56e04
9 changed files with 74 additions and 37 deletions

View File

@@ -374,4 +374,11 @@ func Test_badd_options()
bwipe! SomeNewBuffer
endfunc
func Test_balt()
new SomeNewBuffer
balt +3 OtherBuffer
e #
call assert_equal('OtherBuffer', bufname())
endfunc
" vim: shiftwidth=2 sts=2 expandtab