diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-01-21 23:03:49 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-01-21 23:03:49 +0100 |
commit | 555de4e3b2881b0d9a72242ecc2ba26b5c698c85 (patch) | |
tree | a29222eafe75fe886346b3f19f7bd023525970e5 /src/testdir/test_mksession.vim | |
parent | b2148f5864d297ca907cdecf7d13fa6c41ef2df1 (diff) | |
download | vim-git-555de4e3b2881b0d9a72242ecc2ba26b5c698c85.tar.gz |
patch 8.1.0789: sourcing a session sets v:errmsgv8.1.0789
Problem: Sourcing a session sets v:errmsg.
Solution: Use "%argdel" instead of "argdel *". (Jason Franklin)
Diffstat (limited to 'src/testdir/test_mksession.vim')
-rw-r--r-- | src/testdir/test_mksession.vim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/testdir/test_mksession.vim b/src/testdir/test_mksession.vim index 4d524da0d..00631f13f 100644 --- a/src/testdir/test_mksession.vim +++ b/src/testdir/test_mksession.vim @@ -415,4 +415,16 @@ func Test_mkview_no_file_name() %bwipe endfunc +" A clean session (one empty buffer, one window, and one tab) should not +" set any error messages when sourced because no commands should fail. +func Test_mksession_no_errmsg() + let v:errmsg = '' + %bwipe! + mksession! Xtest_mks.out + source Xtest_mks.out + call assert_equal('', v:errmsg) + call delete('Xtest_mks.out') +endfunc + + " vim: shiftwidth=2 sts=2 expandtab |