Taro Muraoka wrote:

> I got a report that synIDattr() returns "-1" (string) for undefined ctermfg.
> 
>     :echo string(synIDattr(synIDtrans(hlID('Visual')), 'fg', 'cterm'))
>     '-1'
> 
> Is this an intented behavior?
> 
> And I wrote an attached patch to make it return empty string "" for
> this case.  I don't know it should be fixed or not, so please check
> it.

An empty string is indeed better.  When getting other attributes that
are not set or not available an empty string is also used.

I'm a little bit worried that we break something.  It's hard to say
what.  Perhaps we should just include this and wait for someone to
complain?

-- 
How To Keep A Healthy Level Of Insanity:
9. As often as possible, skip rather than walk.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui