]> granicus.if.org Git - vim/commitdiff
patch 8.2.1139: Vim9: test for silent echo fails in some environments v8.2.1139
authorBram Moolenaar <Bram@vim.org>
Sun, 5 Jul 2020 16:48:23 +0000 (18:48 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 5 Jul 2020 16:48:23 +0000 (18:48 +0200)
Problem:    Vim9: test for silent echo fails in some environments.
Solution:   Use :function instead of :def.

src/testdir/test_vim9_func.vim
src/version.c

index 94c94575f3703f6d8be83983c1d07addec164617..d7c37b15925fee2c605fa7848aeff1052c854fab 100644 (file)
@@ -920,7 +920,7 @@ def Test_line_continuation_in_def()
   assert_equal('full', Line_continuation_in_def('.'))
 enddef
 
-def Test_silent_echo()
+func Test_silent_echo()
   CheckScreendump
 
   let lines =<< trim END
@@ -930,17 +930,17 @@ def Test_silent_echo()
     enddef
     defcompile
   END
-  writefile(lines, 'XTest_silent_echo')
+  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})
-  term_sendkeys(buf, ":abc")
+  call term_sendkeys(buf, ":abc")
   call VerifyScreenDump(buf, 'Test_vim9_silent_echo', {})
 
   " clean up
   call StopVimInTerminal(buf)
   call delete('XTest_silent_echo')
-enddef
+endfunc
 
 
 " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker
index 950871e9a4895117065ded3b53d2d98f28737453..23d2d1b974549a8c1ff096f8685ec635412fd4eb 100644 (file)
@@ -754,6 +754,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1139,
 /**/
     1138,
 /**/