Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
21171:0472770ff04e | 21172:96ae8622cfb6 |
---|---|
1 " Test various aspects of the Vim9 script language. | 1 " Test various aspects of the Vim9 script language. |
2 | 2 |
3 source check.vim | 3 source check.vim |
4 source view_util.vim | 4 source view_util.vim |
5 source vim9.vim | 5 source vim9.vim |
6 source screendump.vim | |
6 | 7 |
7 func Test_def_basic() | 8 func Test_def_basic() |
8 def SomeFunc(): string | 9 def SomeFunc(): string |
9 return 'yes' | 10 return 'yes' |
10 enddef | 11 enddef |
901 | 902 |
902 def Test_line_continuation_in_def() | 903 def Test_line_continuation_in_def() |
903 assert_equal('full', Line_continuation_in_def('.')) | 904 assert_equal('full', Line_continuation_in_def('.')) |
904 enddef | 905 enddef |
905 | 906 |
907 def Test_silent_echo() | |
908 CheckScreendump | |
909 | |
910 let lines =<< trim END | |
911 vim9script | |
912 def EchoNothing() | |
913 silent echo '' | |
914 enddef | |
915 defcompile | |
916 END | |
917 writefile(lines, 'XTest_silent_echo') | |
918 | |
919 " Check that the balloon shows up after a mouse move | |
920 let buf = RunVimInTerminal('-S XTest_silent_echo', {'rows': 6}) | |
921 term_sendkeys(buf, ":abc") | |
922 call VerifyScreenDump(buf, 'Test_vim9_silent_echo', {}) | |
923 | |
924 " clean up | |
925 call StopVimInTerminal(buf) | |
926 call delete('XTest_silent_echo') | |
927 enddef | |
928 | |
906 | 929 |
907 " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker | 930 " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker |