diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-11-07 18:41:10 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-11-07 18:41:10 +0100 |
commit | 59d8e56e048eb5d384649284fb35363931fc3697 (patch) | |
tree | 3941971859628440195075acf6104cac9ef43821 /src/testdir/test_buffer.vim | |
parent | cbcd9cbd77acc8cc97c0d44683d96c01d3dd0fa7 (diff) |
patch 8.2.1967: the session file does not restore the alternate filev8.2.1967
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)
Diffstat (limited to 'src/testdir/test_buffer.vim')
-rw-r--r-- | src/testdir/test_buffer.vim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/testdir/test_buffer.vim b/src/testdir/test_buffer.vim index a743f1808c..4e8a79f0c6 100644 --- a/src/testdir/test_buffer.vim +++ b/src/testdir/test_buffer.vim @@ -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 |