From 7bcc5932e0ff368a44cbb40cffdbaf6a46d22dc1 Mon Sep 17 00:00:00 2001 From: Bjorn Winckler Date: Sat, 22 Jan 2011 18:41:40 +0100 Subject: [PATCH] Fix for 'set fu' in gvimrc It is now possible to enter full screen on startup by setting the option 'fullscreen' in gvimrc. --- src/option.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/option.c b/src/option.c index 5efb0a111f..31ad24a2fd 100644 --- a/src/option.c +++ b/src/option.c @@ -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) {