diff options
author | Sean Dewar <seandewar@users.noreply.github.com> | 2021-02-11 03:42:15 +0000 |
---|---|---|
committer | Sean Dewar <seandewar@users.noreply.github.com> | 2021-02-11 19:00:55 +0000 |
commit | 4bc82a59b6fc3927ce20c7cadb080ed1c9d6fce8 (patch) | |
tree | becb52371d7ead44b2d0898475893c139878a3e7 /src/nvim/testdir | |
parent | add0cf9a42a5122d74d0b89301802ba10bef802b (diff) | |
download | rneovim-4bc82a59b6fc3927ce20c7cadb080ed1c9d6fce8.tar.gz rneovim-4bc82a59b6fc3927ce20c7cadb080ed1c9d6fce8.tar.bz2 rneovim-4bc82a59b6fc3927ce20c7cadb080ed1c9d6fce8.zip |
vim-patch:8.2.2467: script generated by :mkview changes alternate file
Problem: Script generated by :mkview changes alternate file.
Solution: Only write :balt in the session file. (Harish Rajagopal,
closes vim/vim#7779)
https://github.com/vim/vim/commit/139348f3e8370826a1ceb10c73f7c7bb586f8125
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r-- | src/nvim/testdir/test_mksession.vim | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_mksession.vim b/src/nvim/testdir/test_mksession.vim index ca19885e3a..7c7804212b 100644 --- a/src/nvim/testdir/test_mksession.vim +++ b/src/nvim/testdir/test_mksession.vim @@ -317,6 +317,20 @@ func Test_mkview_open_folds() %bwipe endfunc +func Test_mkview_no_balt() + edit Xtestfile1 + edit Xtestfile2 + + mkview! Xtestview + bdelete Xtestfile1 + + source Xtestview + call assert_equal(0, buflisted('Xtestfile1')) + + call delete('Xtestview') + %bwipe +endfunc + " Test :mkview with a file argument. func Test_mkview_file() " Create a view with line number and a fold. |