diff options
author | roxma <roxma@qq.com> | 2019-04-06 23:49:22 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-04-07 00:56:26 +0200 |
commit | 8376d2c4b11025e0420d2faa037fad6b8b77aa81 (patch) | |
tree | 40f77bbb2de6ddafc61bb9c63fb782494adc9a83 /runtime | |
parent | 3cd9422c4c43fc7f4e6397a2b07a9ab05d4026cf (diff) | |
download | rneovim-8376d2c4b11025e0420d2faa037fad6b8b77aa81.tar.gz rneovim-8376d2c4b11025e0420d2faa037fad6b8b77aa81.tar.bz2 rneovim-8376d2c4b11025e0420d2faa037fad6b8b77aa81.zip |
vim-patch:8.1.1123: avoid filtering autocomplete
Author: roxma <roxma@qq.com>
Problem: No way to avoid filtering for autocomplete function, causing
flickering of the popup menu.
Solution: Add the "equal" field to complete items. (closes vim/vim#3887)
https://github.com/vim/vim/commit/73655cf0ca37a9aa8f56fc51bb853a8b1f7b43d4
closes #9566
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 173ad33090..9de2becf81 100644 --- a/runtime/doc/insert.txt +++ b/runtime/doc/insert.txt @@ -1075,6 +1075,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 @@ -1082,10 +1085,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 |