]> granicus.if.org Git - vim/commitdiff
patch 8.1.1543: const test fails with small features v8.1.1543
authorBram Moolenaar <Bram@vim.org>
Sat, 15 Jun 2019 15:50:57 +0000 (17:50 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 15 Jun 2019 15:50:57 +0000 (17:50 +0200)
Problem:    Const test fails with small features.
Solution:   Don't unlet non-existing variables.

src/testdir/test_const.vim
src/version.c

index f0b9a052cc30cb4313cf13fa6b3aec5d35f5bfaf..bb47e5e5fdca505e6806c902ddc71377cfa26abd 100644 (file)
@@ -43,8 +43,10 @@ func Test_define_var_with_lock()
     unlet F
     unlet l
     unlet d
-    unlet j
-    unlet c
+    if has('channel')
+      unlet j
+      unlet c
+    endif
     unlet b
     unlet n
     unlet bl
@@ -92,8 +94,10 @@ func Test_define_l_var_with_lock()
     unlet l:F
     unlet l:l
     unlet l:d
-    unlet l:j
-    unlet l:c
+    if has('channel')
+      unlet l:j
+      unlet l:c
+    endif
     unlet l:b
     unlet l:n
     unlet l:bl
index 931b3af8f1d017fac3fc3b7b2858198d9724522c..0b036d031b7dd324b24ddae47d59017db759d4db 100644 (file)
@@ -777,6 +777,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1543,
 /**/
     1542,
 /**/