changeset 8991:42e85487c0f9 v7.4.1781

commit https://github.com/vim/vim/commit/da5b3dcf06a3af5b398450258be32b0416451a9b Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 23 15:19:02 2016 +0200 patch 7.4.1781 Problem: synIDattr() does not respect 'guicolors'. Solution: Change the conditition for the mode. (Christian Brabandt)
author Christian Brabandt <cb@256bit.org>
date Sat, 23 Apr 2016 15:30:06 +0200
parents 9780999ee224
children d4e6dccc4840
files src/eval.c src/version.c
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/eval.c
+++ b/src/eval.c
@@ -20019,8 +20019,8 @@ f_synIDattr(typval_T *argvars UNUSED, ty
     }
     else
     {
-#ifdef FEAT_GUI
-	if (gui.in_use)
+#if defined(FEAT_GUI) || defined(FEAT_TERMTRUECOLOR)
+	if (USE_24BIT)
 	    modec = 'g';
 	else
 #endif
--- a/src/version.c
+++ b/src/version.c
@@ -754,6 +754,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1781,
+/**/
     1780,
 /**/
     1779,