To: vim_dev@googlegroups.com Subject: Patch 8.2.1923 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.1923 Problem: Vim9: "filter" command modifier doesn't work. Solution: Check for space on char before argument. (closes #7216, closes #7222) Files: src/ex_docmd.c, src/testdir/test_vim9_cmd.vim *** ../vim-8.2.1922/src/ex_docmd.c 2020-10-28 13:53:46.549128959 +0100 --- src/ex_docmd.c 2020-10-29 20:19:10.268862071 +0100 *************** *** 2763,2769 **** } #ifdef FEAT_EVAL // Avoid that "filter(arg)" is recognized. ! if (in_vim9script() && !VIM_ISWHITE(*p)) break; #endif if (skip_only) --- 2763,2769 ---- } #ifdef FEAT_EVAL // Avoid that "filter(arg)" is recognized. ! if (in_vim9script() && !VIM_ISWHITE(p[-1])) break; #endif if (skip_only) *** ../vim-8.2.1922/src/testdir/test_vim9_cmd.vim 2020-10-23 18:02:28.711453754 +0200 --- src/testdir/test_vim9_cmd.vim 2020-10-29 20:23:23.544226986 +0100 *************** *** 312,317 **** --- 312,329 ---- assert_equal([#{x: 3, y: 4}], tags) enddef + def Test_filter_is_recognized() + var lines =<< trim END + final expected = "\nType Name Content\n c \"c piyo" + @a = 'hoge' + @b = 'fuga' + @c = 'piyo' + + assert_equal(execute('filter /piyo/ registers abc'), expected) + END + CheckDefAndScriptSuccess(lines) + enddef + def Test_eval_command() var from = 3 var to = 5 *** ../vim-8.2.1922/src/version.c 2020-10-29 20:08:17.426500447 +0100 --- src/version.c 2020-10-29 20:23:45.244172578 +0100 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 1923, /**/ -- hundred-and-one symptoms of being an internet addict: 152. You find yourself falling for someone you've never seen or hardly know, but, boy can he/she TYPE!!!!!! /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///