mirror of
https://github.com/vim/vim.git
synced 2025-11-08 10:27:32 -05:00
patch 8.2.2842: Vim9: skip argument to searchpair() is not compiled
Problem: Vim9: skip argument to searchpair() is not compiled. Solution: Add VAR_INSTR.
This commit is contained in:
@@ -974,6 +974,20 @@ def Test_searchcount()
|
||||
bwipe!
|
||||
enddef
|
||||
|
||||
def Test_searchpair()
|
||||
new
|
||||
setline(1, "here { and } there")
|
||||
normal f{
|
||||
var col = 15
|
||||
assert_equal(1, searchpair('{', '', '}', '', 'col(".") > col'))
|
||||
assert_equal(12, col('.'))
|
||||
col = 8
|
||||
normal 0f{
|
||||
assert_equal(0, searchpair('{', '', '}', '', 'col(".") > col'))
|
||||
assert_equal(6, col('.'))
|
||||
bwipe!
|
||||
enddef
|
||||
|
||||
def Test_set_get_bufline()
|
||||
# similar to Test_setbufline_getbufline()
|
||||
var lines =<< trim END
|
||||
|
||||
Reference in New Issue
Block a user