Mercurial > vim
diff src/testdir/test_vim9_func.vim @ 21172:96ae8622cfb6 v8.2.1137
patch 8.2.1137: Vim9: modifiers not cleared after compiling function
Commit: https://github.com/vim/vim/commit/47e7d70b58e8bfc1daaf6d35569ef2dbd0339ddc
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jul 5 18:18:42 2020 +0200
patch 8.2.1137: Vim9: modifiers not cleared after compiling function
Problem: Vim9: modifiers not cleared after compiling function.
Solution: Clear command modifiers. (closes https://github.com/vim/vim/issues/6396)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 05 Jul 2020 18:30:07 +0200 |
parents | 8c494353c6bc |
children | 95abb4b22905 |
line wrap: on
line diff
--- a/src/testdir/test_vim9_func.vim +++ b/src/testdir/test_vim9_func.vim @@ -3,6 +3,7 @@ source check.vim source view_util.vim source vim9.vim +source screendump.vim func Test_def_basic() def SomeFunc(): string @@ -903,5 +904,27 @@ def Test_line_continuation_in_def() assert_equal('full', Line_continuation_in_def('.')) enddef +def Test_silent_echo() + CheckScreendump + + let lines =<< trim END + vim9script + def EchoNothing() + silent echo '' + 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