0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

Allow synIDattr() getting GUI attributes when build without GUI.

(Matt Wozniski)
This commit is contained in:
Bram Moolenaar
2010-07-14 22:04:22 +02:00
parent 865242e121
commit 61623362be
3 changed files with 51 additions and 40 deletions

View File

@@ -16953,11 +16953,7 @@ f_synIDattr(argvars, rettv)
{
mode = get_tv_string_buf(&argvars[2], modebuf);
modec = TOLOWER_ASC(mode[0]);
if (modec != 't' && modec != 'c'
#ifdef FEAT_GUI
&& modec != 'g'
#endif
)
if (modec != 't' && modec != 'c' && modec != 'g')
modec = 0; /* replace invalid with current */
}
else