diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-04-06 13:45:55 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-04-06 13:45:55 +0200 |
commit | 73655cf0ca37a9aa8f56fc51bb853a8b1f7b43d4 (patch) | |
tree | 2068cee49d648ce30fd4496288a9de36d15a6818 /runtime | |
parent | 9d40128afd7fcd038ff6532722b55b1a8c189ce8 (diff) |
patch 8.1.1123: no way to avoid filtering for autocomplete functionv8.1.1123
Problem: No way to avoid filtering for autocomplete function, causing
flickering of the popup menu.
Solution: Add the "equal" field to complete items. (closes #3887)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/insert.txt | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/runtime/doc/insert.txt b/runtime/doc/insert.txt index 8d8bc1d7b6..cf02e91b78 100644 --- a/runtime/doc/insert.txt +++ b/runtime/doc/insert.txt @@ -1105,6 +1105,9 @@ items: icase when non-zero case is to be ignored when comparing items to be equal; when omitted zero is used, thus items that only differ in case are added + equal when non-zero, always treat this item to be equal when + comparing. Which means, "equal=1" disables filtering + of this item. dup when non-zero this match will be added even when an item with the same word is already present. empty when non-zero this match will be added even when it is @@ -1112,10 +1115,10 @@ items: user_data custom data which is associated with the item and available in |v:completed_item| -All of these except "icase", "dup" and "empty" must be a string. If an item -does not meet these requirements then an error message is given and further -items in the list are not used. You can mix string and Dictionary items in -the returned list. +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 +further items in the list are not used. You can mix string and Dictionary +items in the returned list. The "menu" item is used in the popup menu and may be truncated, thus it should be relatively short. The "info" item can be longer, it will be displayed in |