vim-patch:7.4.1081

Problem:    No test for what previously caused a crash.
Solution:   Add test for unletting errmsg.

254b105b75

Use v:errmsg instead of errmsg.

Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
zeertzjq 2022-10-26 13:38:51 +08:00
parent ec33edc7b7
commit 0fb08f3539

View File

@ -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()