Patch 8.2.3092
Problem:    Vim9: builtin function test fails without the +channel feature.
Solution:   Check the +channel feature is supported. (Dominique Pellé,
            closes #8507)
Files:      runtime/doc/eval.txt, src/testdir/test_vim9_builtin.vim


*** ../vim-8.2.3091/runtime/doc/eval.txt        2021-06-30 20:54:30.692546348 
+0200
--- runtime/doc/eval.txt        2021-07-03 19:21:36.970766495 +0200
***************
*** 8191,8196 ****
--- 8230,8237 ----
                Can also be used as a |method|: >
                        GetBuffer()->prompt_getprompt()
  
+ <             {only available when compiled with the |+channel| feature}
+ 
  
  prompt_setcallback({buf}, {expr})                     *prompt_setcallback()*
                Set prompt callback for buffer {buf} to {expr}.  When {expr}
***************
*** 8224,8229 ****
--- 8265,8271 ----
  <             Can also be used as a |method|: >
                        GetBuffer()->prompt_setcallback(callback)
  
+ <             {only available when compiled with the |+channel| feature}
  
  prompt_setinterrupt({buf}, {expr})                    *prompt_setinterrupt()*
                Set a callback for buffer {buf} to {expr}.  When {expr} is an
***************
*** 8237,8242 ****
--- 8279,8286 ----
                Can also be used as a |method|: >
                        GetBuffer()->prompt_setinterrupt(callback)
  
+ <             {only available when compiled with the |+channel| feature}
+ 
  prompt_setprompt({buf}, {text})                               
*prompt_setprompt()*
                Set prompt for buffer {buf} to {text}.  You most likely want
                {text} to end in a space.
***************
*** 8247,8252 ****
--- 8291,8298 ----
                Can also be used as a |method|: >
                        GetBuffer()->prompt_setprompt('command: ')
  
+ <             {only available when compiled with the |+channel| feature}
+ 
  prop_ functions are documented here: |text-prop-functions|
  
  pum_getpos()                                          *pum_getpos()*
*** ../vim-8.2.3091/src/testdir/test_vim9_builtin.vim   2021-07-03 
11:58:08.373825923 +0200
--- src/testdir/test_vim9_builtin.vim   2021-07-03 19:21:36.970766495 +0200
***************
*** 1344,1351 ****
  enddef
  
  def Test_prompt_getprompt()
!   CheckDefFailure(['prompt_getprompt([])'], 'E1013: Argument 1: type 
mismatch, expected string but got list<unknown>')
!   assert_equal('', prompt_getprompt('NonExistingBuf'))
  enddef
  
  def Test_rand()
--- 1344,1353 ----
  enddef
  
  def Test_prompt_getprompt()
!   if has('channel')
!     CheckDefFailure(['prompt_getprompt([])'], 'E1013: Argument 1: type 
mismatch, expected string but got list<unknown>')
!     assert_equal('', prompt_getprompt('NonExistingBuf'))
!   endif
  enddef
  
  def Test_rand()
*** ../vim-8.2.3091/src/version.c       2021-07-03 18:56:49.921634878 +0200
--- src/version.c       2021-07-03 19:25:22.450322195 +0200
***************
*** 757,758 ****
--- 757,760 ----
  {   /* Add new patch number below this line */
+ /**/
+     3092,
  /**/

-- 
Ed's Radiator Shop: The Best Place in Town to Take a Leak.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            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/202107031728.163HSCmN2314216%40masaka.moolenaar.net.

Raspunde prin e-mail lui