summaryrefslogtreecommitdiff
path: root/src/gui.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-05-25 14:06:36 +0200
committerBram Moolenaar <Bram@vim.org>2012-05-25 14:06:36 +0200
commit6a3c1b44e53ed72a4fb15213bdea0e451e6f6a06 (patch)
tree90c23a831b4d79a5968619534eecb652e1cee036 /src/gui.c
parent6057b9c658d9f05286675ee417bf1de9d3ca5aff (diff)
downloadvim-git-6a3c1b44e53ed72a4fb15213bdea0e451e6f6a06.tar.gz
updated for version 7.3.530v7.3.530
Problem: Gvim does not work when 'guioptions' includes "f". (Davido) Solution: Call gui_mch_init_check() when running GUI in the foreground. (Yasuhiro Matsumoto)
Diffstat (limited to 'src/gui.c')
-rw-r--r--src/gui.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui.c b/src/gui.c
index b216121cf..ed80844f4 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -102,6 +102,10 @@ gui_start()
else
#endif
{
+ /* If there is 'f' in 'guioptions' and specify -g argument,
+ * gui_mch_init_check() was not called yet. */
+ if (gui_mch_init_check() != OK)
+ exit(1);
gui_attempt_start();
}