From 8a7d6542b33e5d2b352262305c3bfdb2d14e1cf8 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 26 Jan 2020 15:56:19 +0100 Subject: 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. --- src/gui.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'src/gui.c') diff --git a/src/gui.c b/src/gui.c index 1249fab220..eec89d5aa2 100644 --- a/src/gui.c +++ b/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; -- cgit v1.2.3