Permalink
Browse files

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.
  • Loading branch information...
brammool committed Nov 9, 2017
1 parent 851ee6c commit cef7322d8a902b4655ed861489c4e798672074f0
Showing with 3 additions and 1 deletion.
  1. +1 −0 runtime/autoload/filetype.vim
  2. +0 −1 runtime/filetype.vim
  3. +2 −0 src/version.c
@@ -560,6 +560,7 @@ func filetype#CSH()
endif
endfunc
let s:ft_rules_udev_rules_pattern = '^\s*\cudev_rules\s*=\s*"\([^"]\{-1,}\)/*".*'
func filetype#FTRules()
let path = expand('<amatch>:p')
if path =~ '^/\(etc/udev/\%(rules\.d/\)\=.*\.rules\|lib/udev/\%(rules\.d/\)\=.*\.rules\)$'
View
@@ -1542,7 +1542,6 @@ au BufNewFile,BufRead *.mib,*.my setf mib
au BufNewFile,BufRead *.hog,snort.conf,vision.conf setf hog
au BufNewFile,BufRead *.rules call filetype#FTRules()
let s:ft_rules_udev_rules_pattern = '^\s*\cudev_rules\s*=\s*"\([^"]\{-1,}\)/*".*'
" Spec (Linux RPM)
au BufNewFile,BufRead *.spec setf spec
View
@@ -761,6 +761,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1282,
/**/
1281,
/**/

0 comments on commit cef7322

Please sign in to comment.