diff runtime/filetype.vim @ 29397:7f5db9decf32 v9.0.0041

patch 9.0.0041: a couple of filetype patterns do not have "*" before "/etc" Commit: https://github.com/vim/vim/commit/704988f0c3598c1b0cc47f3b46f1f1229312f2bc Author: smjonas <jonas.strittmatter@gmx.de> Date: Tue Jul 5 18:42:56 2022 +0100 patch 9.0.0041: a couple of filetype patterns do not have "*" before "/etc" Problem: A couple of filetype patterns do not have "*" before "/etc". Solution: Add the star. (Jonas Strittmatter, closes https://github.com/vim/vim/issues/10662)
author Bram Moolenaar <Bram@vim.org>
date Tue, 05 Jul 2022 19:45:05 +0200
parents f4f531986753
children 03e3b0034e31
line wrap: on
line diff
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -2389,7 +2389,7 @@ au BufNewFile,BufRead *fvwm2rc*
 au BufNewFile,BufRead */tmp/lltmp*		call s:StarSetf('gedcom')
 
 " Git
-au BufNewFile,BufRead */.gitconfig.d/*,/etc/gitconfig.d/*	call s:StarSetf('gitconfig')
+au BufNewFile,BufRead */.gitconfig.d/*,*/etc/gitconfig.d/*	call s:StarSetf('gitconfig')
 
 " Gitolite
 au BufNewFile,BufRead */gitolite-admin/conf/*	call s:StarSetf('gitolite')
@@ -2454,7 +2454,7 @@ au BufNewFile,BufRead neomuttrc*,Neomutt
 au BufNewFile,BufRead tmac.*			call s:StarSetf('nroff')
 
 " OpenBSD hostname.if
-au BufNewFile,BufRead /etc/hostname.*		call s:StarSetf('config')
+au BufNewFile,BufRead */etc/hostname.*		call s:StarSetf('config')
 
 " Pam conf
 au BufNewFile,BufRead */etc/pam.d/*		call s:StarSetf('pamconf')