]> granicus.if.org Git - vim/commitdiff
patch 8.0.1607: --clean loads user settings from .gvimrc v8.0.1607
authorBram Moolenaar <Bram@vim.org>
Wed, 14 Mar 2018 20:20:02 +0000 (21:20 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 14 Mar 2018 20:20:02 +0000 (21:20 +0100)
Problem:    --clean loads user settings from .gvimrc.
Solution:   Behave like "-U NONE" was used. (Ken Takata)

runtime/doc/starting.txt
src/main.c
src/version.c

index 235846043f4a674e146a88da5160301be338ba89..9d5e43f3d317dcf0daa67b1560cd50712a73a42e 100644 (file)
@@ -510,11 +510,12 @@ a slash.  Thus "-R" means recovery and "-/R" readonly.
                {not in Vi}
 
                                                        *--clean*
---clean                Equal to "-u DEFAULTS -i NONE":
+--clean                Equal to "-u DEFAULTS -U NONE -i NONE":
                - initializations from files and environment variables is
                  skipped
                - the |defaults.vim| script is loaded, which implies
                  'nocompatible': use Vim defaults
+               - no |gvimrc| script is loaded
                - no viminfo file is read or written
                - the home directory is excluded from 'runtimepath'
                                                        *-x*
index ff01fd968fe7eb3e863a74b4b3aaf6866102f165..61543b171f86424d35325b7e1d8d2c506a50954b 100644 (file)
@@ -1881,6 +1881,9 @@ command_line_scan(mparm_T *parmp)
                else if (STRNICMP(argv[0] + argv_idx, "clean", 5) == 0)
                {
                    parmp->use_vimrc = (char_u *)"DEFAULTS";
+#ifdef FEAT_GUI
+                   use_gvimrc = (char_u *)"NONE";
+#endif
                    parmp->clean = TRUE;
                    set_option_value((char_u *)"vif", 0L, (char_u *)"NONE", 0);
                }
index 4531c82c3e6adce69953ed9a880709247df3b1a0..e7e3f493f0b7531913dd012207855699ba5c8815 100644 (file)
@@ -766,6 +766,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1607,
 /**/
     1606,
 /**/