Skip to content

Commit da5b3dc

Browse files
committed
patch 7.4.1781
Problem: synIDattr() does not respect 'guicolors'. Solution: Change the conditition for the mode. (Christian Brabandt)
1 parent dc633cf commit da5b3dc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/eval.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20019,8 +20019,8 @@ f_synIDattr(typval_T *argvars UNUSED, typval_T *rettv)
2001920019
}
2002020020
else
2002120021
{
20022-
#ifdef FEAT_GUI
20023-
if (gui.in_use)
20022+
#if defined(FEAT_GUI) || defined(FEAT_TERMTRUECOLOR)
20023+
if (USE_24BIT)
2002420024
modec = 'g';
2002520025
else
2002620026
#endif

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -753,6 +753,8 @@ static char *(features[]) =
753753

754754
static int included_patches[] =
755755
{ /* Add new patch number below this line */
756+
/**/
757+
1781,
756758
/**/
757759
1780,
758760
/**/

0 commit comments

Comments
 (0)