diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-07-18 21:43:07 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-07-18 21:43:07 +0200 |
commit | 7964873afe59d0896a921b7c585167674bb784d5 (patch) | |
tree | c72d46d9af739d51471bf940a1bc077e526daaf5 /src/option.c | |
parent | df9c6cad8cc318e26e99c3b055f0788e7d6582de (diff) | |
download | vim-git-7964873afe59d0896a921b7c585167674bb784d5.tar.gz |
patch 8.1.1714: cannot preview a file in a popup windowv8.1.1714
Problem: Cannot preview a file in a popup window.
Solution: Add the 'previewpopup' option.
Diffstat (limited to 'src/option.c')
-rw-r--r-- | src/option.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/option.c b/src/option.c index 4856a598d..c17e9128a 100644 --- a/src/option.c +++ b/src/option.c @@ -2079,6 +2079,15 @@ static struct vimoption options[] = (char_u *)NULL, PV_NONE, #endif {(char_u *)12L, (char_u *)0L} SCTX_INIT}, + {"previewpopup", "pvp", P_STRING|P_VI_DEF|P_COMMA|P_NODUP, +#ifdef FEAT_TEXT_PROP + (char_u *)&p_pvp, PV_NONE, + {(char_u *)"", (char_u *)0L} +#else + (char_u *)NULL, PV_NONE, + {(char_u *)NULL, (char_u *)0L} +#endif + SCTX_INIT}, {"previewwindow", "pvw", P_BOOL|P_VI_DEF|P_RSTAT|P_NOGLOB, #if defined(FEAT_QUICKFIX) (char_u *)VAR_WIN, PV_PVW, @@ -7831,6 +7840,15 @@ did_set_string_option( } #endif +#ifdef FEAT_TEXT_PROP + // 'previewpopup' + else if (varp == &p_pvp) + { + if (parse_previewpopup(NULL) == FAIL) + errmsg = e_invarg; + } +#endif + /* Options that are a list of flags. */ else { |