diff src/eval.c @ 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 42beb54724fa
children 2085167ab1b0
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