patch 8.2.1894: Vim9: command modifiers are not supported
Problem: Vim9: command modifiers are not supported.
Solution: Support "silent" and "silent!".
diff --git a/src/testdir/test_vim9_cmd.vim b/src/testdir/test_vim9_cmd.vim
index 296aa55..710cd2f 100644
--- a/src/testdir/test_vim9_cmd.vim
+++ b/src/testdir/test_vim9_cmd.vim
@@ -401,5 +401,17 @@
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