]> granicus.if.org Git - vim/commitdiff
patch 8.0.0335: functions test fails v8.0.0335
authorBram Moolenaar <Bram@vim.org>
Fri, 17 Feb 2017 15:43:49 +0000 (16:43 +0100)
committerBram Moolenaar <Bram@vim.org>
Fri, 17 Feb 2017 15:43:49 +0000 (16:43 +0100)
Problem:    Functions test fails.
Solution:   Use the right buffer number.

src/testdir/test_functions.vim
src/version.c

index 5e34c2f82d66cdd4d7f6523f67f979a3b28a62cb..218567ff46c8bb072b8c57e857d0af29b6ca5f3c 100644 (file)
@@ -453,8 +453,8 @@ func Test_getbufvar()
   call assert_equal(def_num, getbufvar(9, '', def_num))
   unlet def_num
 
-  call assert_equal(0, getbufvar(1, '&autoindent'))
-  call assert_equal(0, getbufvar(1, '&autoindent', 1))
+  call assert_equal(0, getbufvar(bnr, '&autoindent'))
+  call assert_equal(0, getbufvar(bnr, '&autoindent', 1))
 
   " Open new window with forced option values
   set fileformats=unix,dos
index c66c1f456530910b9e4da643f8cee0fed550b38e..ef1f9adab95700ed04279c06bb873f7343a7493b 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    335,
 /**/
     334,
 /**/