aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax/syntax.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-08-23 13:03:00 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-08-23 17:48:12 +0800
commit7afc17dec17bcc40c646b796f05d373e46916dd7 (patch)
tree6bf0e577fd5e15084fa8fe8df95a2b7bfb4459aa /runtime/syntax/syntax.vim
parenta9e6cf0e64ede3fc26226fed3a5f94a7f5020918 (diff)
downloadrneovim-7afc17dec17bcc40c646b796f05d373e46916dd7.tar.gz
rneovim-7afc17dec17bcc40c646b796f05d373e46916dd7.tar.bz2
rneovim-7afc17dec17bcc40c646b796f05d373e46916dd7.zip
vim-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. https://github.com/vim/vim/commit/60895f3e36def9beb7d5463e792e5154ad9a7a0a Most code changes has already been ported.
Diffstat (limited to 'runtime/syntax/syntax.vim')
-rw-r--r--runtime/syntax/syntax.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/syntax/syntax.vim b/runtime/syntax/syntax.vim
index ac7dc314b9..55a2ee6d71 100644
--- 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