Mercurial > vim
diff src/testdir/test_eval_stuff.vim @ 15593:e26caeb30026 v8.1.0804
patch 8.1.0804: crash when setting v:errmsg to empty list
commit https://github.com/vim/vim/commit/4b9e91f0ba02192e4592a5c4a9bdcdd6e9efeb5e
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jan 24 13:58:11 2019 +0100
patch 8.1.0804: crash when setting v:errmsg to empty list
Problem: Crash when setting v:errmsg to empty list. (Jaon Franklin)
Solution: Separate getting value and assigning result.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 24 Jan 2019 14:00:08 +0100 |
parents | 1550cc188ff6 |
children | bd49e1656c72 |
line wrap: on
line diff
--- a/src/testdir/test_eval_stuff.vim +++ b/src/testdir/test_eval_stuff.vim @@ -87,3 +87,10 @@ func Test_readfile_binary() bwipe! call delete('XReadfile') endfunc + +func Test_let_errmsg() + call assert_fails('let v:errmsg = []', 'E730:') + let v:errmsg = '' + call assert_fails('let v:errmsg = []', 'E730:') + let v:errmsg = '' +endfunc