]> granicus.if.org Git - vim/commitdiff
patch 9.0.1021: test trips over g:name v9.0.1021
authorBram Moolenaar <Bram@vim.org>
Tue, 6 Dec 2022 15:07:56 +0000 (15:07 +0000)
committerBram Moolenaar <Bram@vim.org>
Tue, 6 Dec 2022 15:07:56 +0000 (15:07 +0000)
Problem:    Test trips over g:name.
Solution:   Delete g:name after using it.

src/testdir/runtest.vim
src/version.c

index ccd22e89faac5a7756a951844f1cbab7beb12ea7..1d70a90f05dd314b89d9107d11d57f13791bf6cd 100644 (file)
@@ -208,6 +208,7 @@ endfunc
 for name in s:GetSwapFileList()
   call delete(name)
 endfor
+unlet name
 
 
 " Invoked when a test takes too much time.
index 288164a4ee360439b6a003cf0a74c625fa933896..10e56c1393c0ec5909a0de40a81be6871419c1ca 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1021,
 /**/
     1020,
 /**/