comparison src/main.c @ 13466:cf7cd0272011 v8.0.1607

patch 8.0.1607: --clean loads user settings from .gvimrc commit https://github.com/vim/vim/commit/62dd452d02f4a17f7e9fdfb3656b71bea62e12fe Author: Bram Moolenaar <Bram@vim.org> Date: Wed Mar 14 21:20:02 2018 +0100 patch 8.0.1607: --clean loads user settings from .gvimrc Problem: --clean loads user settings from .gvimrc. Solution: Behave like "-U NONE" was used. (Ken Takata)
author Christian Brabandt <cb@256bit.org>
date Wed, 14 Mar 2018 21:30:06 +0100
parents 6740c499de13
children 0c56cfb463f0
comparison
equal deleted inserted replaced
13465:cfeb8bdb9bbd 13466:cf7cd0272011
1879 mch_exit(0); 1879 mch_exit(0);
1880 } 1880 }
1881 else if (STRNICMP(argv[0] + argv_idx, "clean", 5) == 0) 1881 else if (STRNICMP(argv[0] + argv_idx, "clean", 5) == 0)
1882 { 1882 {
1883 parmp->use_vimrc = (char_u *)"DEFAULTS"; 1883 parmp->use_vimrc = (char_u *)"DEFAULTS";
1884 #ifdef FEAT_GUI
1885 use_gvimrc = (char_u *)"NONE";
1886 #endif
1884 parmp->clean = TRUE; 1887 parmp->clean = TRUE;
1885 set_option_value((char_u *)"vif", 0L, (char_u *)"NONE", 0); 1888 set_option_value((char_u *)"vif", 0L, (char_u *)"NONE", 0);
1886 } 1889 }
1887 else if (STRNICMP(argv[0] + argv_idx, "literal", 7) == 0) 1890 else if (STRNICMP(argv[0] + argv_idx, "literal", 7) == 0)
1888 { 1891 {