summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-10-30 21:48:41 +0100
committerBram Moolenaar <Bram@vim.org>2017-10-30 21:48:41 +0100
commit48570488f17e397183ea7d5c7ca67d6e4ffb013d (patch)
treef9bbc935f2f0d999e16d047056c747168791cb3e /runtime
parent2e51d9a0972080b087d566608472928d5b7b35d7 (diff)
patch 8.0.1239: cannot use a lambda for the skip argument to searchpair()v8.0.1239
Problem: Cannot use a lambda for the skip argument to searchpair(). Solution: Evaluate a partial, funcref and lambda. (LemonBoy, closes #1454, closes #2265)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/eval.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 6dc05a5568..9c2117ca2d 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -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()|.