1
0
forked from aniani/vim

patch 8.2.1563: Vim9: error when using '%" with setbufvar() r getbufvar()

Problem:    Vim9: error when using '%" with setbufvar() or getbufvar().
Solution:   Use tv_get_buf_from_arg(). (closes #6816)
This commit is contained in:
Bram Moolenaar
2020-09-01 23:16:32 +02:00
parent 3767e3a330
commit 6f84b6db10
3 changed files with 7 additions and 7 deletions

View File

@@ -1426,6 +1426,9 @@ def Test_setbufvar()
settabwinvar(1, 1, '&ts', 15)
assert_equal(15, &ts)
setlocal ts=8
setbufvar('%', 'myvar', 123)
assert_equal(123, getbufvar('%', 'myvar'))
enddef
def Test_setreg()