aboutsummaryrefslogtreecommitdiff
path: root/src/nvim
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim')
-rw-r--r--src/nvim/insexpand.c9
-rw-r--r--src/nvim/options.lua5
2 files changed, 6 insertions, 8 deletions
diff --git a/src/nvim/insexpand.c b/src/nvim/insexpand.c
index 2664fc8045..d02a698f08 100644
--- a/src/nvim/insexpand.c
+++ b/src/nvim/insexpand.c
@@ -1808,13 +1808,12 @@ int ins_compl_len(void)
return compl_length;
}
-/// Return TRUE when preinsert is set AND both 'menu' and 'menuone' flags
-/// are also set, otherwise return FALSE.
+/// Return true when the 'completeopt' "preinsert" flag is in effect,
+/// otherwise return false.
static bool ins_compl_has_preinsert(void)
{
- return (get_cot_flags()
- & (kOptCotFlagFuzzy|kOptCotFlagPreinsert|kOptCotFlagMenu|kOptCotFlagMenuone))
- == (kOptCotFlagPreinsert|kOptCotFlagMenu|kOptCotFlagMenuone);
+ return (get_cot_flags() & (kOptCotFlagFuzzy|kOptCotFlagPreinsert|kOptCotFlagMenuone))
+ == (kOptCotFlagPreinsert|kOptCotFlagMenuone);
}
/// Returns true if the pre-insert effect is valid and the cursor is within
diff --git a/src/nvim/options.lua b/src/nvim/options.lua
index 73605024db..ff919bb522 100644
--- a/src/nvim/options.lua
+++ b/src/nvim/options.lua
@@ -1543,9 +1543,8 @@ local options = {
preinsert
Preinsert the portion of the first candidate word that is
not part of the current completion leader and using the
- |hl-ComplMatchIns| highlight group. Does not work when
- "fuzzy" is set. Requires both "menu" and "menuone" to be
- set.
+ |hl-ComplMatchIns| highlight group. In order for it to
+ work, "fuzzy" must not bet set and "menuone" must be set.
preview Show extra information about the currently selected
completion in the preview window. Only works in