Kazunobu Kuriyama wrote:

> The attached patch is twofold:
> 
> (1) Improve gui_mch_get_fontname() of X11.
> 
> When I was writing a test on :colorscheme, I found that getfontname() of
> gui_x11.c returns an empty string after :colorscheme {name} is called.
> This makes it difficult for a colorscheme test and Test_getfontname tests
> to coexist.
> 
> That is due to an obvious limitation imposed by the current implementation
> of gui_mch_get_fontname().
> 
> To improve that, I propose a modified implementation of the function.  With
> this, getfontname() returns an XLFD instead of an empty string.
> 
> Once the patch is applied, getfontname() always returns something
> meaningful.  This implies, however, that it returns either an XLFD or its
> alias depending on context.  So I had to replace some of assert_equal()s
> with assert_match() in Test_getfontname tests so that they would be
> context-independent.
> 
> (2) The rest of the patch are some additions to test_gui, in particular,
> tests on guicursor and guioptions.
> 
> As written in "h 'guioptions'", the M option has to be placed in .vimrc
> file for it to take effect.  To fulfill this requirement, I added a new
> file called gui_preinit.vim which plays a role as .vimrc for test_gui_init,
> and modified some Makefiles accordingly.

Great, thanks.

-- 
hundred-and-one symptoms of being an internet addict:
97. Your mother tells you to remember something, and you look for
    a File/Save command.

 /// 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