]> granicus.if.org Git - vim/commitdiff
patch 7.4.1081 v7.4.1081
authorBram Moolenaar <Bram@vim.org>
Sun, 10 Jan 2016 15:10:17 +0000 (16:10 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 10 Jan 2016 15:10:17 +0000 (16:10 +0100)
Problem:    No test for what previously caused a crash.
Solution:   Add test for unletting errmsg.

src/testdir/test_unlet.vim
src/version.c

index f6705997a970387f82d401740307f34ee02bb03c..13ec66b10302a0f9c84157249e6c7f8e1ab70466 100644 (file)
@@ -7,6 +7,12 @@ func Test_read_only()
   catch
     call assert_true(v:exception =~ ':E795:')
   endtry
+  try
+    " this caused a crash
+    unlet errmsg
+  catch
+    call assert_true(v:exception =~ ':E795:')
+  endtry
 endfunc
 
 func Test_existing()
index 449dd55b82829abe4bb881c2213240f7fe7464bb..5bfab59d1f20e794d97eab7db2fcc7146426a7a9 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1081,
 /**/
     1080,
 /**/