diff src/testdir/test_functions.vim @ 10891:c9d057b7a0ab v8.0.0335

patch 8.0.0335: functions test fails commit https://github.com/vim/vim/commit/507647da3151f7ffccac1b217936240daa79849c Author: Bram Moolenaar <Bram@vim.org> Date: Fri Feb 17 16:43:49 2017 +0100 patch 8.0.0335: functions test fails Problem: Functions test fails. Solution: Use the right buffer number.
author Christian Brabandt <cb@256bit.org>
date Fri, 17 Feb 2017 16:45:06 +0100
parents 5780bd3a5a7e
children 50f3e37bc210
line wrap: on
line diff
--- a/src/testdir/test_functions.vim
+++ b/src/testdir/test_functions.vim
@@ -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