To: vim_dev@googlegroups.com Subject: Patch 8.2.3392 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.3392 Problem: augroup completion escapes regexp pattern characters. Solution: Do not escape the augroup name. (closes #8826) Files: src/cmdexpand.c, src/testdir/test_cmdline.vim *** ../vim-8.2.3391/src/cmdexpand.c 2021-08-27 20:59:31.541835086 +0200 --- src/cmdexpand.c 2021-09-01 13:02:00.103062148 +0200 *************** *** 2134,2141 **** {EXPAND_SYNTIME, get_syntime_arg, TRUE, TRUE}, # endif {EXPAND_HIGHLIGHT, get_highlight_name, TRUE, TRUE}, ! {EXPAND_EVENTS, get_event_name, TRUE, TRUE}, ! {EXPAND_AUGROUP, get_augroup_name, TRUE, TRUE}, # ifdef FEAT_CSCOPE {EXPAND_CSCOPE, get_cscope_name, TRUE, TRUE}, # endif --- 2134,2141 ---- {EXPAND_SYNTIME, get_syntime_arg, TRUE, TRUE}, # endif {EXPAND_HIGHLIGHT, get_highlight_name, TRUE, TRUE}, ! {EXPAND_EVENTS, get_event_name, TRUE, FALSE}, ! {EXPAND_AUGROUP, get_augroup_name, TRUE, FALSE}, # ifdef FEAT_CSCOPE {EXPAND_CSCOPE, get_cscope_name, TRUE, TRUE}, # endif *** ../vim-8.2.3391/src/testdir/test_cmdline.vim 2021-08-28 15:56:03.461179888 +0200 --- src/testdir/test_cmdline.vim 2021-09-01 13:01:37.823135191 +0200 *************** *** 876,886 **** call delete('Xfile2') " completion for the :augroup command ! augroup XTest augroup END call feedkeys(":augroup X\\\"\", 'xt') ! call assert_equal("\"augroup XTest", @:) ! augroup! XTest " completion for the :unlet command call feedkeys(":unlet one two\\\"\", 'xt') --- 876,888 ---- call delete('Xfile2') " completion for the :augroup command ! augroup XTest.test augroup END call feedkeys(":augroup X\\\"\", 'xt') ! call assert_equal("\"augroup XTest.test", @:) ! call feedkeys(":au X\\\"\", 'xt') ! call assert_equal("\"au XTest.test", @:) ! augroup! XTest.test " completion for the :unlet command call feedkeys(":unlet one two\\\"\", 'xt') *** ../vim-8.2.3391/src/version.c 2021-08-31 20:57:51.197860833 +0200 --- src/version.c 2021-09-01 13:02:26.914975059 +0200 *************** *** 757,758 **** --- 757,760 ---- { /* Add new patch number below this line */ + /**/ + 3392, /**/ -- The word "leader" is derived from the word "lead", as in the material that bullets are made out of. The term "leader" was popularized at about the same time as the invention of firearms. It grew out of the observation that the person in charge of every organization was the person whom everyone wanted to fill with hot lead. I don't recomment this; it's just a point of historical interest. (Scott Adams - The Dilbert principle) /// 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 ///