Mercurial > vim
comparison src/testdir/test_vim9_builtin.vim @ 24606:a4fda40e0bb9 v8.2.2842
patch 8.2.2842: Vim9: skip argument to searchpair() is not compiled
Commit: https://github.com/vim/vim/commit/f18332fb9e2e4208a97d800f096b02c6681780e7
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri May 7 17:55:55 2021 +0200
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 07 May 2021 18:00:04 +0200 |
parents | abc4793f48a3 |
children | cb031f421ece |
comparison
equal
deleted
inserted
replaced
24605:f5484f767f70 | 24606:a4fda40e0bb9 |
---|---|
972 maxcount: 99, | 972 maxcount: 99, |
973 incomplete: 0}) | 973 incomplete: 0}) |
974 bwipe! | 974 bwipe! |
975 enddef | 975 enddef |
976 | 976 |
977 def Test_searchpair() | |
978 new | |
979 setline(1, "here { and } there") | |
980 normal f{ | |
981 var col = 15 | |
982 assert_equal(1, searchpair('{', '', '}', '', 'col(".") > col')) | |
983 assert_equal(12, col('.')) | |
984 col = 8 | |
985 normal 0f{ | |
986 assert_equal(0, searchpair('{', '', '}', '', 'col(".") > col')) | |
987 assert_equal(6, col('.')) | |
988 bwipe! | |
989 enddef | |
990 | |
977 def Test_set_get_bufline() | 991 def Test_set_get_bufline() |
978 # similar to Test_setbufline_getbufline() | 992 # similar to Test_setbufline_getbufline() |
979 var lines =<< trim END | 993 var lines =<< trim END |
980 new | 994 new |
981 var b = bufnr('%') | 995 var b = bufnr('%') |