diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-06-03 22:01:48 -0400 |
|---|---|---|
| committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-06-03 23:12:23 -0400 |
| commit | 233a173226112adc9b8fed336fa03c3b32c3675f (patch) | |
| tree | 375ac541a3e798129eec94e0ed8ac87df6199178 /src/nvim/testdir | |
| parent | 7ad621b6d924ef912a4c4c7e64175213dc82a16f (diff) | |
| download | rneovim-233a173226112adc9b8fed336fa03c3b32c3675f.tar.gz rneovim-233a173226112adc9b8fed336fa03c3b32c3675f.tar.bz2 rneovim-233a173226112adc9b8fed336fa03c3b32c3675f.zip | |
vim-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.
https://github.com/vim/vim/commit/4b9e91f0ba02192e4592a5c4a9bdcdd6e9efeb5e
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_eval_stuff.vim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_eval_stuff.vim b/src/nvim/testdir/test_eval_stuff.vim index 610ef65f8e..ff8f2e5fc7 100644 --- a/src/nvim/testdir/test_eval_stuff.vim +++ b/src/nvim/testdir/test_eval_stuff.vim @@ -92,3 +92,10 @@ func Test_nocatch_restore_silent_emsg() let c5 = nr2char(screenchar(&lines, 5)) call assert_equal('wrong', c1 . c2 . c3 . c4 . c5) 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 |