changeset 7562:f73876aa9a13 v7.4.1081

commit https://github.com/vim/vim/commit/254b105b755d9736ece5f7f28db92acaf3e7bf76 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 10 16:10:17 2016 +0100 patch 7.4.1081 Problem: No test for what previously caused a crash. Solution: Add test for unletting errmsg.
author Christian Brabandt <cb@256bit.org>
date Sun, 10 Jan 2016 16:15:05 +0100
parents eab993bb6a61
children e1165e3f5586
files src/testdir/test_unlet.vim src/version.c
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_unlet.vim
+++ b/src/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 errmsg
+  catch
+    call assert_true(v:exception =~ ':E795:')
+  endtry
 endfunc
 
 func Test_existing()
--- a/src/version.c
+++ b/src/version.c
@@ -742,6 +742,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1081,
+/**/
     1080,
 /**/
     1079,