Fix for 'set fu' in gvimrc

It is now possible to enter full screen on startup by setting the option
'fullscreen' in gvimrc.
This commit is contained in:
Bjorn Winckler
2011-01-22 18:41:40 +01:00
parent dfa2561d7d
commit 7bcc5932e0
+1 -1
View File
@@ -7759,7 +7759,7 @@ set_bool_option(opt_idx, varp, value, opt_flags)
#ifdef FEAT_FULLSCREEN
/* when 'fullscreen' changes, forward it to the gui */
else if ((int *)varp == &p_fullscreen && gui.in_use)
else if ((int *)varp == &p_fullscreen && (gui.in_use || gui.starting))
{
if (p_fullscreen && !old_value)
{