Mercurial > vim
changeset 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 | d2c0687e460b |
children | 1a04998ddb16 |
files | src/testdir/test_functions.vim src/version.c |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
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