forked from aniani/vim
patch 7.4.1799
Problem: 'guicolors' is a confusing option name. Solution: Use 'termguicolors' instead. (Hirohito Higashi)
This commit is contained in:
24
src/option.c
24
src/option.c
@@ -1303,15 +1303,6 @@ static struct vimoption options[] =
|
||||
#else
|
||||
(char_u *)NULL, PV_NONE,
|
||||
{(char_u *)NULL, (char_u *)0L}
|
||||
#endif
|
||||
SCRIPTID_INIT},
|
||||
{"guicolors", "gcol", P_BOOL|P_VI_DEF|P_VIM|P_RCLR,
|
||||
#ifdef FEAT_TERMTRUECOLOR
|
||||
(char_u *)&p_guicolors, PV_NONE,
|
||||
{(char_u *)FALSE, (char_u *)FALSE}
|
||||
#else
|
||||
(char_u*)NULL, PV_NONE,
|
||||
{(char_u *)FALSE, (char_u *)FALSE}
|
||||
#endif
|
||||
SCRIPTID_INIT},
|
||||
{"guicursor", "gcr", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
|
||||
@@ -2623,6 +2614,15 @@ static struct vimoption options[] =
|
||||
#else
|
||||
(char_u *)NULL, PV_NONE,
|
||||
{(char_u *)0L, (char_u *)0L}
|
||||
#endif
|
||||
SCRIPTID_INIT},
|
||||
{"termguicolors", "tgc", P_BOOL|P_VI_DEF|P_VIM|P_RCLR,
|
||||
#ifdef FEAT_TERMGUICOLORS
|
||||
(char_u *)&p_tgc, PV_NONE,
|
||||
{(char_u *)FALSE, (char_u *)FALSE}
|
||||
#else
|
||||
(char_u*)NULL, PV_NONE,
|
||||
{(char_u *)FALSE, (char_u *)FALSE}
|
||||
#endif
|
||||
SCRIPTID_INIT},
|
||||
{"terse", NULL, P_BOOL|P_VI_DEF,
|
||||
@@ -8364,9 +8364,9 @@ set_bool_option(
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef FEAT_TERMTRUECOLOR
|
||||
/* 'guicolors' */
|
||||
else if ((int *)varp == &p_guicolors)
|
||||
#ifdef FEAT_TERMGUICOLORS
|
||||
/* 'termguicolors' */
|
||||
else if ((int *)varp == &p_tgc)
|
||||
{
|
||||
# ifdef FEAT_GUI
|
||||
if (!gui.in_use && !gui.starting)
|
||||
|
Reference in New Issue
Block a user