patch 8.2.0084: complete item "user_data" can only be a string

Problem:    Complete item "user_data" can only be a string.
Solution:   Accept any type of variable. (closes #5412)
This commit is contained in:
Bram Moolenaar
2020-01-04 14:32:48 +01:00
parent 5cb0b93d52
commit 0892832bb6
7 changed files with 98 additions and 43 deletions

View File

@ -1108,7 +1108,8 @@ items:
empty when non-zero this match will be added even when it is
an empty string
user_data custom data which is associated with the item and
available in |v:completed_item|
available in |v:completed_item|; it can be any type;
defaults to an empty string
All of these except "icase", "equal", "dup" and "empty" must be a string. If
an item does not meet these requirements then an error message is given and