summaryrefslogtreecommitdiff
path: root/src/testdir/test_mksession.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-02-05 21:55:53 +0100
committerBram Moolenaar <Bram@vim.org>2021-02-05 21:55:53 +0100
commit139348f3e8370826a1ceb10c73f7c7bb586f8125 (patch)
tree65a97250ed20a876b16ecf1e17a0cae83f889aaa /src/testdir/test_mksession.vim
parentab65fc77c5389f7d3f788bbdc3d931561feab131 (diff)
downloadvim-git-139348f3e8370826a1ceb10c73f7c7bb586f8125.tar.gz
patch 8.2.2467: script generated by :mkview changes alternate filev8.2.2467
Problem: Script generated by :mkview changes alternate file. Solution: Only write :balt in the session file. (Harish Rajagopal, closes #7779)
Diffstat (limited to 'src/testdir/test_mksession.vim')
-rw-r--r--src/testdir/test_mksession.vim14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/testdir/test_mksession.vim b/src/testdir/test_mksession.vim
index 82c96ce63..eb8c6a5a4 100644
--- a/src/testdir/test_mksession.vim
+++ b/src/testdir/test_mksession.vim
@@ -530,6 +530,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.