# HG changeset patch # User Christian Brabandt # Date 1520543704 -3600 # Node ID a23300c1c1cf29e636a4a808f5c4392708017468 # Parent b57ba17e3e59bb8280e83f608cfe612cd3d71e36 patch 8.0.1591: MS-Windows: when reparsing the arguments 'wildignore' matters commit https://github.com/vim/vim/commit/20586cb4f4d516a60b96cc02a94b810fea8b8cdb Author: Bram Moolenaar Date: Thu Mar 8 22:03:14 2018 +0100 patch 8.0.1591: MS-Windows: when reparsing the arguments 'wildignore' matters Problem: MS-Windows: when reparsing the arguments 'wildignore' matters. Solution: Save and reset 'wildignore'. (Yasuhiro Matsumoto, closes https://github.com/vim/vim/issues/2702) diff --git a/src/os_win32.c b/src/os_win32.c --- a/src/os_win32.c +++ b/src/os_win32.c @@ -7397,10 +7397,15 @@ fix_arg_enc(void) /* Now expand wildcards in the arguments. */ /* Temporarily add '(' and ')' to 'isfname'. These are valid * filename characters but are excluded from 'isfname' to make - * "gf" work on a file name in parenthesis (e.g.: see vim.h). */ + * "gf" work on a file name in parenthesis (e.g.: see vim.h). + * Also, unset wildignore to not be influenced by this option. + * The arguments specified in command-line should be kept even if + * encoding options were changed. */ do_cmdline_cmd((char_u *)":let SaVe_ISF = &isf|set isf+=(,)"); + do_cmdline_cmd((char_u *)":let SaVe_WIG = &wig|set wig="); alist_expand(fnum_list, used_alist_count); do_cmdline_cmd((char_u *)":let &isf = SaVe_ISF|unlet SaVe_ISF"); + do_cmdline_cmd((char_u *)":let &wig = SaVe_WIG|unlet SaVe_WIG"); } /* If wildcard expansion failed, we are editing the first file of the diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -767,6 +767,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1591, +/**/ 1590, /**/ 1589,