forked from aniani/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.
This commit is contained in:
@@ -37,7 +37,7 @@ fun! s:SynSet()
|
||||
unlet b:current_syntax
|
||||
endif
|
||||
|
||||
let s = expand("<amatch>")
|
||||
0verbose let s = expand("<amatch>")
|
||||
if s == "ON"
|
||||
" :set syntax=ON
|
||||
if &filetype == ""
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user