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:
@@ -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
|
||||
|
Reference in New Issue
Block a user