forked from aniani/vim
patch 8.2.1618: Vim9: cannot pass "true" to setloclist()
Problem: Vim9: cannot pass "true" to setloclist(). Solution: Use dict_get_bool(). (closes #6882)
This commit is contained in:
@@ -1614,6 +1614,13 @@ def Test_setbufvar()
|
||||
assert_equal(123, getbufvar('%', 'myvar'))
|
||||
enddef
|
||||
|
||||
def Test_setloclist()
|
||||
let items = [#{filename: '/tmp/file', lnum: 1, valid: true}]
|
||||
let what = #{items: items}
|
||||
setqflist([], ' ', what)
|
||||
setloclist(0, [], ' ', what)
|
||||
enddef
|
||||
|
||||
def Test_setreg()
|
||||
setreg('a', ['aaa', 'bbb', 'ccc'])
|
||||
let reginfo = getreginfo('a')
|
||||
|
||||
Reference in New Issue
Block a user