comparison runtime/doc/builtin.txt @ 29194:f92f658585e6 v8.2.5116

patch 8.2.5116: "limit" option of matchfuzzy() not always respected Commit: https://github.com/vim/vim/commit/47f1a55849a73cefe738a246798221e45448546a Author: Kazuyuki Miyagi <yuzu3886@gmail.com> Date: Fri Jun 17 18:30:03 2022 +0100 patch 8.2.5116: "limit" option of matchfuzzy() not always respected Problem: "limit" option of matchfuzzy() not always respected. Solution: Remove "else". (Kazuyuki Miyagi, closes https://github.com/vim/vim/issues/10586)
author Bram Moolenaar <Bram@vim.org>
date Fri, 17 Jun 2022 19:45:02 +0200
parents 1e9e9d89f0ee
children 0eef32b4ebbc
comparison
equal deleted inserted replaced
29193:1e9e9d89f0ee 29194:f92f658585e6
5897 The optional {dict} argument always supports the following 5897 The optional {dict} argument always supports the following
5898 items: 5898 items:
5899 matchseq When this item is present return only matches 5899 matchseq When this item is present return only matches
5900 that contain the characters in {str} in the 5900 that contain the characters in {str} in the
5901 given sequence. 5901 given sequence.
5902 limit Maximum number of matches in {list} to be
5903 returned. Zero means no limit.
5902 5904
5903 If {list} is a list of dictionaries, then the optional {dict} 5905 If {list} is a list of dictionaries, then the optional {dict}
5904 argument supports the following additional items: 5906 argument supports the following additional items:
5905 key Key of the item which is fuzzy matched against 5907 key Key of the item which is fuzzy matched against
5906 {str}. The value of this item should be a 5908 {str}. The value of this item should be a
5908 text_cb |Funcref| that will be called for every item 5910 text_cb |Funcref| that will be called for every item
5909 in {list} to get the text for fuzzy matching. 5911 in {list} to get the text for fuzzy matching.
5910 This should accept a dictionary item as the 5912 This should accept a dictionary item as the
5911 argument and return the text for that item to 5913 argument and return the text for that item to
5912 use for fuzzy matching. 5914 use for fuzzy matching.
5913 limit Maximum number of matches in {list} to be
5914 returned. Zero means no limit.
5915 5915
5916 {str} is treated as a literal string and regular expression 5916 {str} is treated as a literal string and regular expression
5917 matching is NOT supported. The maximum supported {str} length 5917 matching is NOT supported. The maximum supported {str} length
5918 is 256. 5918 is 256.
5919 5919