mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.0149: maintaining a Vim9 branch separately is more work
Problem: Maintaining a Vim9 branch separately is more work. Solution: Merge the Vim9 script changes.
This commit is contained in:
19
src/gui.c
19
src/gui.c
@@ -519,7 +519,7 @@ gui_init(void)
|
||||
if (vim_strchr(p_go, GO_NOSYSMENU) == NULL)
|
||||
{
|
||||
sys_menu = TRUE;
|
||||
do_source((char_u *)SYS_MENU_FILE, FALSE, DOSO_NONE);
|
||||
do_source((char_u *)SYS_MENU_FILE, FALSE, DOSO_NONE, NULL);
|
||||
sys_menu = FALSE;
|
||||
}
|
||||
#endif
|
||||
@@ -540,8 +540,8 @@ gui_init(void)
|
||||
{
|
||||
if (STRCMP(use_gvimrc, "NONE") != 0
|
||||
&& STRCMP(use_gvimrc, "NORC") != 0
|
||||
&& do_source(use_gvimrc, FALSE, DOSO_NONE) != OK)
|
||||
semsg(_("E230: Cannot read from \"%s\""), use_gvimrc);
|
||||
&& do_source(use_gvimrc, FALSE, DOSO_NONE, NULL) != OK)
|
||||
semsg(_("E230: Cannot read from \"%s\""), use_gvimrc, NULL);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -549,7 +549,7 @@ gui_init(void)
|
||||
* Get system wide defaults for gvim, only when file name defined.
|
||||
*/
|
||||
#ifdef SYS_GVIMRC_FILE
|
||||
do_source((char_u *)SYS_GVIMRC_FILE, FALSE, DOSO_NONE);
|
||||
do_source((char_u *)SYS_GVIMRC_FILE, FALSE, DOSO_NONE, NULL);
|
||||
#endif
|
||||
|
||||
/*
|
||||
@@ -563,19 +563,20 @@ gui_init(void)
|
||||
*/
|
||||
if (process_env((char_u *)"GVIMINIT", FALSE) == FAIL
|
||||
&& do_source((char_u *)USR_GVIMRC_FILE, TRUE,
|
||||
DOSO_GVIMRC) == FAIL
|
||||
DOSO_GVIMRC, NULL) == FAIL
|
||||
#ifdef USR_GVIMRC_FILE2
|
||||
&& do_source((char_u *)USR_GVIMRC_FILE2, TRUE,
|
||||
DOSO_GVIMRC) == FAIL
|
||||
DOSO_GVIMRC, NULL) == FAIL
|
||||
#endif
|
||||
#ifdef USR_GVIMRC_FILE3
|
||||
&& do_source((char_u *)USR_GVIMRC_FILE3, TRUE,
|
||||
DOSO_GVIMRC) == FAIL
|
||||
DOSO_GVIMRC, NULL) == FAIL
|
||||
#endif
|
||||
)
|
||||
{
|
||||
#ifdef USR_GVIMRC_FILE4
|
||||
(void)do_source((char_u *)USR_GVIMRC_FILE4, TRUE, DOSO_GVIMRC);
|
||||
(void)do_source((char_u *)USR_GVIMRC_FILE4, TRUE,
|
||||
DOSO_GVIMRC, NULL);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -623,7 +624,7 @@ gui_init(void)
|
||||
(char_u *)GVIMRC_FILE, FALSE, TRUE) != FPC_SAME
|
||||
#endif
|
||||
)
|
||||
do_source((char_u *)GVIMRC_FILE, TRUE, DOSO_GVIMRC);
|
||||
do_source((char_u *)GVIMRC_FILE, TRUE, DOSO_GVIMRC, NULL);
|
||||
|
||||
if (secure == 2)
|
||||
need_wait_return = TRUE;
|
||||
|
Reference in New Issue
Block a user