diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-08-18 16:35:23 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-08-18 16:35:23 +0200 |
commit | 62a0cb443c3184f24a6dac73d3505f9056cf6056 (patch) | |
tree | 42ee160304d76f887d29e4e9a193c426d8bacb75 /src/option.c | |
parent | f4665e78f2d1b2ca64de5f5331d03de7d61c8c66 (diff) | |
download | vim-git-62a0cb443c3184f24a6dac73d3505f9056cf6056.tar.gz |
patch 8.1.1882: cannot specify properties of the info popup windowv8.1.1882
Problem: Cannot specify properties of the info popup window.
Solution: Add the 'completepopup' option. Default to PmenuSel highlight.
Diffstat (limited to 'src/option.c')
-rw-r--r-- | src/option.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/option.c b/src/option.c index 5bcb33e50..65403b58f 100644 --- a/src/option.c +++ b/src/option.c @@ -893,6 +893,15 @@ static struct vimoption options[] = {(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, #if defined(FEAT_INS_EXPAND) && defined(BACKSLASH_IN_FILENAME) (char_u *)&p_csl, PV_CSL, @@ -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. */ |