Mercurial > vim
comparison src/gui.c @ 9836:bc591685594a v7.4.2193
commit https://github.com/vim/vim/commit/717e196060d946fe20bb0f0307f417dc4d0e9b17
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Aug 10 21:28:44 2016 +0200
patch 7.4.2193
Problem: With Gnome when the GUI can't start test_startup hangs.
Solution: Call gui_mch_early_init_check(). (Hirohito Higashi)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 10 Aug 2016 21:30:07 +0200 |
parents | fe665dae7197 |
children | 664276833670 |
comparison
equal
deleted
inserted
replaced
9835:5e15a9ae1039 | 9836:bc591685594a |
---|---|
445 * Note: Don't call gtk_init_check() before fork, it will be called after | 445 * Note: Don't call gtk_init_check() before fork, it will be called after |
446 * the fork. When calling it before fork, it make vim hang for a while. | 446 * the fork. When calling it before fork, it make vim hang for a while. |
447 * See gui_do_fork(). | 447 * See gui_do_fork(). |
448 * Use a simpler check if the GUI window can probably be opened. | 448 * Use a simpler check if the GUI window can probably be opened. |
449 */ | 449 */ |
450 result = gui.dofork ? gui_mch_early_init_check() : gui_mch_init_check(); | 450 result = gui.dofork ? gui_mch_early_init_check(TRUE) : gui_mch_init_check(); |
451 # else | 451 # else |
452 result = gui_mch_init_check(); | 452 result = gui_mch_init_check(); |
453 # endif | 453 # endif |
454 #endif | 454 #endif |
455 return result; | 455 return result; |