forked from aniani/vim
patch 8.1.1882: cannot specify properties of the info popup window
Problem: Cannot specify properties of the info popup window. Solution: Add the 'completepopup' option. Default to PmenuSel highlight.
This commit is contained in:
15
src/option.c
15
src/option.c
@@ -891,6 +891,15 @@ static struct vimoption options[] =
|
||||
#else
|
||||
(char_u *)NULL, PV_NONE,
|
||||
{(char_u *)0L, (char_u *)0L}
|
||||
#endif
|
||||
SCTX_INIT},
|
||||
{"completepopup", "cpp", P_STRING|P_VI_DEF|P_COMMA|P_NODUP,
|
||||
#ifdef FEAT_TEXT_PROP
|
||||
(char_u *)&p_cpp, PV_NONE,
|
||||
{(char_u *)"", (char_u *)0L}
|
||||
#else
|
||||
(char_u *)NULL, PV_NONE,
|
||||
{(char_u *)NULL, (char_u *)0L}
|
||||
#endif
|
||||
SCTX_INIT},
|
||||
{"completeslash", "csl", P_STRING|P_VI_DEF|P_VIM,
|
||||
@@ -7826,6 +7835,12 @@ did_set_string_option(
|
||||
if (parse_previewpopup(NULL) == FAIL)
|
||||
errmsg = e_invarg;
|
||||
}
|
||||
// 'completepopup'
|
||||
else if (varp == &p_cpp)
|
||||
{
|
||||
if (parse_completepopup(NULL) == FAIL)
|
||||
errmsg = e_invarg;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Options that are a list of flags. */
|
||||
|
||||
Reference in New Issue
Block a user