Patch 8.2.1139 (after 8.2.1137)
Problem:    Vim9: test for silent echo fails in some environments.
Solution:   Use :function instead of :def.
Files:      src/testdir/test_vim9_func.vim


*** ../vim-8.2.1138/src/testdir/test_vim9_func.vim      2020-07-05 
18:41:05.171877168 +0200
--- src/testdir/test_vim9_func.vim      2020-07-05 18:46:42.842302742 +0200
***************
*** 920,926 ****
    assert_equal('full', Line_continuation_in_def('.'))
  enddef
  
! def Test_silent_echo()
    CheckScreendump
  
    let lines =<< trim END
--- 920,926 ----
    assert_equal('full', Line_continuation_in_def('.'))
  enddef
  
! func Test_silent_echo()
    CheckScreendump
  
    let lines =<< trim END
***************
*** 930,946 ****
      enddef
      defcompile
    END
!   writefile(lines, 'XTest_silent_echo')
  
    " Check that the balloon shows up after a mouse move
    let buf = RunVimInTerminal('-S XTest_silent_echo', {'rows': 6})
!   term_sendkeys(buf, ":abc")
    call VerifyScreenDump(buf, 'Test_vim9_silent_echo', {})
  
    " clean up
    call StopVimInTerminal(buf)
    call delete('XTest_silent_echo')
! enddef
  
  
  " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker
--- 930,946 ----
      enddef
      defcompile
    END
!   call writefile(lines, 'XTest_silent_echo')
  
    " Check that the balloon shows up after a mouse move
    let buf = RunVimInTerminal('-S XTest_silent_echo', {'rows': 6})
!   call term_sendkeys(buf, ":abc")
    call VerifyScreenDump(buf, 'Test_vim9_silent_echo', {})
  
    " clean up
    call StopVimInTerminal(buf)
    call delete('XTest_silent_echo')
! endfunc
  
  
  " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker
*** ../vim-8.2.1138/src/version.c       2020-07-05 18:41:05.171877168 +0200
--- src/version.c       2020-07-05 18:48:02.405935293 +0200
***************
*** 756,757 ****
--- 756,759 ----
  {   /* Add new patch number below this line */
+ /**/
+     1139,
  /**/

-- 
Are leaders born or made?  And if they're made, can we return them under
warranty?
                                (Scott Adams - The Dilbert principle)

 /// 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/202007051648.065GmnjD618854%40masaka.moolenaar.net.

Raspunde prin e-mail lui