diff runtime/syntax/syntax.vim @ 28433:367439b95aba v8.2.4741

patch 8.2.4741: startup test fails Commit: https://github.com/vim/vim/commit/60895f3e36def9beb7d5463e792e5154ad9a7a0a Author: Bram Moolenaar <Bram@vim.org> Date: Tue Apr 12 14:23:19 2022 +0100 patch 8.2.4741: startup test fails Problem: Startup test fails. Solution: Avoid an error for verbose expansion. Fix that the "0verbose" command modifier doesn't work.
author Bram Moolenaar <Bram@vim.org>
date Tue, 12 Apr 2022 15:30:05 +0200
parents 3fc0f57ecb91
children f73a9bdff3a3
line wrap: on
line diff
--- a/runtime/syntax/syntax.vim
+++ b/runtime/syntax/syntax.vim
@@ -28,8 +28,9 @@ endif
 
 " Set up the connection between FileType and Syntax autocommands.
 " This makes the syntax automatically set when the file type is detected.
+" Avoid an error when 'verbose' is set and <amatch> expansion fails.
 augroup syntaxset
-  au! FileType *	exe "set syntax=" . expand("<amatch>")
+  au! FileType *	0verbose exe "set syntax=" . expand("<amatch>")
 augroup END