1
0
forked from aniani/vim

patch 8.2.1894: Vim9: command modifiers are not supported

Problem:    Vim9: command modifiers are not supported.
Solution:   Support "silent" and "silent!".
This commit is contained in:
Bram Moolenaar
2020-10-23 18:02:32 +02:00
parent 8ded5b647a
commit f4c6e1e75c
8 changed files with 120 additions and 3 deletions

View File

@@ -401,5 +401,17 @@ def Test_f_args()
CheckScriptSuccess(lines)
enddef
def Test_modifier_silent()
echomsg 'last one'
silent echomsg "text"
redir => g:testmsg
:1messages
redir END
assert_equal("\nlast one", g:testmsg)
unlet g:testmsg
silent! echoerr "error"
enddef
" vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker