mirror of
https://github.com/vim/vim.git
synced 2025-10-12 06:44:06 -04:00
patch 8.1.1714: cannot preview a file in a popup window
Problem: Cannot preview a file in a popup window. Solution: Add the 'previewpopup' option.
This commit is contained in:
18
src/option.c
18
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
|
||||
{
|
||||
|
Reference in New Issue
Block a user