diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-07-05 18:48:23 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-07-05 18:48:23 +0200 |
commit | 8f510afcd616fc62291fb41f9dd03ce298f1c601 (patch) | |
tree | ae3c07cd358661d8ee980a091f8cfe893d054c8f | |
parent | a66ba01a5fbbd72375ef6982b901d6552da2414f (diff) |
patch 8.2.1139: Vim9: test for silent echo fails in some environmentsv8.2.1139
Problem: Vim9: test for silent echo fails in some environments.
Solution: Use :function instead of :def.
-rw-r--r-- | src/testdir/test_vim9_func.vim | 8 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/testdir/test_vim9_func.vim b/src/testdir/test_vim9_func.vim index 94c94575f3..d7c37b1592 100644 --- a/src/testdir/test_vim9_func.vim +++ b/src/testdir/test_vim9_func.vim @@ -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 diff --git a/src/version.c b/src/version.c index 950871e9a4..23d2d1b974 100644 --- a/src/version.c +++ b/src/version.c @@ -755,6 +755,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1139, +/**/ 1138, /**/ 1137, |