Skip to content

Commit 254b105

Browse files
committed
patch 7.4.1081
Problem: No test for what previously caused a crash. Solution: Add test for unletting errmsg.
1 parent f32c5cd commit 254b105

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/testdir/test_unlet.vim

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ func Test_read_only()
77
catch
88
call assert_true(v:exception =~ ':E795:')
99
endtry
10+
try
11+
" this caused a crash
12+
unlet errmsg
13+
catch
14+
call assert_true(v:exception =~ ':E795:')
15+
endtry
1016
endfunc
1117

1218
func Test_existing()

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,8 @@ static char *(features[]) =
741741

742742
static int included_patches[] =
743743
{ /* Add new patch number below this line */
744+
/**/
745+
1081,
744746
/**/
745747
1080,
746748
/**/

0 commit comments

Comments
 (0)