Monday, January 26, 2015

Re: getfontname() returns blank after setting color

Hi Hosup!

On Mo, 26 Jan 2015, Hosup Chung wrote:

> Installed lasted windows binary from www.vim.org
> ver: 7.4 (2013 Aug 10) MS-Windows 32-bit GUI
>
> Opened gvim
> :echo getfontname()
> " returns Fixedsys:h9:cDEFAULT
> :color morning
> :echo getfontname()
> " returns blank
>
> Is this a normal behavior?

At the start, your Normal highlighting group contains a font attribute
which you can then query using getfontname()
Loading another color scheme does implicitly do :hi clear and that
clears the font attribute of the normal group as well.
This might be a bug, I do not know.

Best,
Christian
--
Männer sind gar nicht so primitiv, wie Frauen meinen - sie sind noch
viel primitiver.
-- Kim Snolden

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment