To: vim_dev@googlegroups.com Subject: Patch 8.2.3569 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.3569 Problem: Error for :let when vimrc is Vim 9 script. Solution: Prepend :legacy in the code for converting arguments. (Christian Brabandt, closes #9068, closes #9077) Files: src/os_win32.c *** ../vim-8.2.3568/src/os_win32.c 2021-07-24 12:57:25.481296527 +0100 --- src/os_win32.c 2021-11-01 22:44:05.573583003 +0000 *************** *** 7768,7778 **** // 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 --- 7768,7781 ---- // 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. ! // Use :legacy so that it also works when in Vim9 script. ! do_cmdline_cmd((char_u *)":legacy let g:SaVe_ISF = &isf|set isf+=(,)"); ! do_cmdline_cmd((char_u *)":legacy let g:SaVe_WIG = &wig|set wig="); alist_expand(fnum_list, used_alist_count); ! do_cmdline_cmd( ! (char_u *)":legacy let &isf = g:SaVe_ISF|unlet g:SaVe_ISF"); ! do_cmdline_cmd( ! (char_u *)":legacy let &wig = g:SaVe_WIG|unlet g:SaVe_WIG"); } // If wildcard expansion failed, we are editing the first file of the *** ../vim-8.2.3568/src/version.c 2021-10-31 20:19:13.004618816 +0000 --- src/version.c 2021-11-01 22:44:03.425554377 +0000 *************** *** 759,760 **** --- 759,762 ---- { /* Add new patch number below this line */ + /**/ + 3569, /**/ -- This is an airconditioned room, do not open Windows. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///