To: vim_dev@googlegroups.com Subject: Patch 8.2.1130 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.1130 Problem: Vim9: bar not recognized after function call Solution: Skip whitespace. (closes #6391) Files: src/vim9compile.c, src/testdir/test_vim9_cmd.vim *** ../vim-8.2.1129/src/vim9compile.c 2020-07-05 14:57:47.731871155 +0200 --- src/vim9compile.c 2020-07-05 15:31:37.983750535 +0200 *************** *** 6985,6991 **** // drop the return value generate_instr_drop(&cctx, ISN_DROP, 1); ! line = p; continue; } // CMD_let cannot happen, compile_assignment() above is used --- 6985,6992 ---- // drop the return value generate_instr_drop(&cctx, ISN_DROP, 1); ! ! line = skipwhite(p); continue; } // CMD_let cannot happen, compile_assignment() above is used *** ../vim-8.2.1129/src/testdir/test_vim9_cmd.vim 2020-07-05 14:57:47.731871155 +0200 --- src/testdir/test_vim9_cmd.vim 2020-07-05 15:29:36.868106162 +0200 *************** *** 216,221 **** --- 216,228 ---- RedrawAndEcho() assert_match('did redraw', Screenline(&lines)) + def CallAndEcho() + let x = 'did redraw' + reg_executing() | echo x + enddef + CallAndEcho() + assert_match('did redraw', Screenline(&lines)) + if has('unix') # bar in filter write command does not start new command def WriteToShell() *** ../vim-8.2.1129/src/version.c 2020-07-05 14:57:47.731871155 +0200 --- src/version.c 2020-07-05 15:31:57.235693144 +0200 *************** *** 756,757 **** --- 756,759 ---- { /* Add new patch number below this line */ + /**/ + 1130, /**/ -- This computer is so slow, it takes forever to execute and endless loop! /// 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 ///