diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-10-26 13:38:51 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-10-26 13:41:31 +0800 |
commit | 0fb08f353948016c8ad6e4a13a9a128208f4dcc5 (patch) | |
tree | 2e0801055ad43c0030bbd746c30978ea1bf42bad | |
parent | ec33edc7b7027b809ac0b496344367a451e3974a (diff) | |
download | rneovim-0fb08f353948016c8ad6e4a13a9a128208f4dcc5.tar.gz rneovim-0fb08f353948016c8ad6e4a13a9a128208f4dcc5.tar.bz2 rneovim-0fb08f353948016c8ad6e4a13a9a128208f4dcc5.zip |
vim-patch:7.4.1081
Problem: No test for what previously caused a crash.
Solution: Add test for unletting errmsg.
https://github.com/vim/vim/commit/254b105b755d9736ece5f7f28db92acaf3e7bf76
Use v:errmsg instead of errmsg.
Co-authored-by: Bram Moolenaar <Bram@vim.org>
-rw-r--r-- | src/nvim/testdir/test_unlet.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_unlet.vim b/src/nvim/testdir/test_unlet.vim index b02bdaab3b..db064b5e9b 100644 --- a/src/nvim/testdir/test_unlet.vim +++ b/src/nvim/testdir/test_unlet.vim @@ -7,6 +7,12 @@ func Test_read_only() catch call assert_true(v:exception =~ ':E795:') endtry + try + " this caused a crash + unlet v:errmsg + catch + call assert_true(v:exception =~ ':E795:') + endtry endfunc func Test_existing() |