mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.0.1282: script-local variable defined in the wrong script
Problem: script-local variable defined in the wrong script Solution: Move variable to autoload/filetype.vim.
This commit is contained in:
@@ -560,6 +560,7 @@ func filetype#CSH()
|
|||||||
endif
|
endif
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
let s:ft_rules_udev_rules_pattern = '^\s*\cudev_rules\s*=\s*"\([^"]\{-1,}\)/*".*'
|
||||||
func filetype#FTRules()
|
func filetype#FTRules()
|
||||||
let path = expand('<amatch>:p')
|
let path = expand('<amatch>:p')
|
||||||
if path =~ '^/\(etc/udev/\%(rules\.d/\)\=.*\.rules\|lib/udev/\%(rules\.d/\)\=.*\.rules\)$'
|
if path =~ '^/\(etc/udev/\%(rules\.d/\)\=.*\.rules\|lib/udev/\%(rules\.d/\)\=.*\.rules\)$'
|
||||||
|
@@ -1542,7 +1542,6 @@ au BufNewFile,BufRead *.mib,*.my setf mib
|
|||||||
au BufNewFile,BufRead *.hog,snort.conf,vision.conf setf hog
|
au BufNewFile,BufRead *.hog,snort.conf,vision.conf setf hog
|
||||||
au BufNewFile,BufRead *.rules call filetype#FTRules()
|
au BufNewFile,BufRead *.rules call filetype#FTRules()
|
||||||
|
|
||||||
let s:ft_rules_udev_rules_pattern = '^\s*\cudev_rules\s*=\s*"\([^"]\{-1,}\)/*".*'
|
|
||||||
" Spec (Linux RPM)
|
" Spec (Linux RPM)
|
||||||
au BufNewFile,BufRead *.spec setf spec
|
au BufNewFile,BufRead *.spec setf spec
|
||||||
|
|
||||||
|
@@ -761,6 +761,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1282,
|
||||||
/**/
|
/**/
|
||||||
1281,
|
1281,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user