Skip to content

Commit 507647d

Browse files
committed
patch 8.0.0335: functions test fails
Problem: Functions test fails. Solution: Use the right buffer number.
1 parent 79518e2 commit 507647d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/testdir/test_functions.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,8 +453,8 @@ func Test_getbufvar()
453453
call assert_equal(def_num, getbufvar(9, '', def_num))
454454
unlet def_num
455455

456-
call assert_equal(0, getbufvar(1, '&autoindent'))
457-
call assert_equal(0, getbufvar(1, '&autoindent', 1))
456+
call assert_equal(0, getbufvar(bnr, '&autoindent'))
457+
call assert_equal(0, getbufvar(bnr, '&autoindent', 1))
458458

459459
" Open new window with forced option values
460460
set fileformats=unix,dos

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static char *(features[]) =
764764

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
335,
767769
/**/
768770
334,
769771
/**/

0 commit comments

Comments
 (0)