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 -- [email protected] -- 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    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202007051332.065DWhxm573457%40masaka.moolenaar.net.

Raspunde prin e-mail lui