1
0
forked from aniani/vim

patch 8.0.1239: cannot use a lambda for the skip argument to searchpair()

Problem:    Cannot use a lambda for the skip argument to searchpair().
Solution:   Evaluate a partial, funcref and lambda. (LemonBoy, closes #1454,
            closes #2265)
This commit is contained in:
Bram Moolenaar
2017-10-30 21:48:41 +01:00
parent 2e51d9a097
commit 48570488f1
8 changed files with 115 additions and 46 deletions

View File

@@ -6784,6 +6784,7 @@ searchpair({start}, {middle}, {end} [, {flags} [, {skip}
When {skip} is omitted or empty, every match is accepted.
When evaluating {skip} causes an error the search is aborted
and -1 returned.
{skip} can be a string, a lambda, a funcref or a partial.
For {stopline} and {timeout} see |search()|.