2009/10/17 David Fishburn <[email protected]>:
>
> On Fri, Oct 16, 2009 at 4:20 AM, Michael Wookey <[email protected]> 
> wrote:
> ...
>> I see the problem and have attached a patch. Give it a try and see if
>> it fixes the 'guifont' behaviour for you.
>
> I regularly build Vim, but have never applied patches before.
>
> Could you just provide the patch command line and the directory to run
> it from just so I get it right.

How do you obtain the vim sources? If you use git then you can just
import the patch via:

  $ git am 0001-fix-guifont-behaviour-with-Windows-multimonitor.patch

Otherwise, since the changes are trivial, I'll just illustrate them
below. Edit src/gui.c and find the following code:

 746 # ifdef FEAT_XFONTSET
 747         if (gui.fontset != NOFONTSET)
 748             gui_mch_set_fontset(gui.fontset);
 749         else
 750 # endif
 751             gui_mch_set_font(gui.norm_font);
 752 #endif
 753         gui_set_shellsize(FALSE,
 754 #ifdef MSWIN
 755                 TRUE
 756 #else
 757                 FALSE
 758 #endif
 759                 , RESIZE_BOTH);
 760     }

Change the code to be the following:

 746 # ifdef FEAT_XFONTSET
 747         if (gui.fontset != NOFONTSET)
 748             gui_mch_set_fontset(gui.fontset);
 749         else
 750 # endif
 751             gui_mch_set_font(gui.norm_font);
 752 #endif
 753         gui_set_shellsize(FALSE, FALSE , RESIZE_BOTH);
 754     }

[ The changes are from line 753 ]

Now, recompile as you normally would and see if the behaviour with
'guifont' is better with multi-monitors.

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui