0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 7.4.1081

Problem:    No test for what previously caused a crash.
Solution:   Add test for unletting errmsg.
This commit is contained in:
Bram Moolenaar 2016-01-10 16:10:17 +01:00
parent f32c5cd6e0
commit 254b105b75
2 changed files with 8 additions and 0 deletions

View File

@ -7,6 +7,12 @@ func Test_read_only()
catch catch
call assert_true(v:exception =~ ':E795:') call assert_true(v:exception =~ ':E795:')
endtry endtry
try
" this caused a crash
unlet errmsg
catch
call assert_true(v:exception =~ ':E795:')
endtry
endfunc endfunc
func Test_existing() func Test_existing()

View File

@ -741,6 +741,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1081,
/**/ /**/
1080, 1080,
/**/ /**/