]> granicus.if.org Git - vim/commitdiff
patch 8.1.0775: matching too many files as zsh v8.1.0775
authorBram Moolenaar <Bram@vim.org>
Fri, 18 Jan 2019 22:14:43 +0000 (23:14 +0100)
committerBram Moolenaar <Bram@vim.org>
Fri, 18 Jan 2019 22:14:43 +0000 (23:14 +0100)
Problem:    Matching too many files as zsh. (Danek Duvall)
Solution:   Be more specific with zsh filetype patterns.

runtime/filetype.vim
src/version.c

index cdfbbffeb92b5819ba020453955c5fcefcb4ef17..30ce1291824285732d2ed2489002c0ccc9c33968 100644 (file)
@@ -1476,15 +1476,16 @@ au BufNewFile,BufRead *.install
        \   call dist#ft#SetFileTypeSH("bash") |
        \ endif
 
-" tcsh scripts
+" tcsh scripts (patterns ending in a star further below)
 au BufNewFile,BufRead .tcshrc,*.tcsh,tcsh.tcshrc,tcsh.login    call dist#ft#SetFileTypeShell("tcsh")
 
 " csh scripts, but might also be tcsh scripts (on some systems csh is tcsh)
+" (patterns ending in a start further below)
 au BufNewFile,BufRead .login,.cshrc,csh.cshrc,csh.login,csh.logout,*.csh,.alias  call dist#ft#CSH()
 
-" Z-Shell script
+" Z-Shell script (patterns ending in a star further below)
 au BufNewFile,BufRead .zprofile,*/etc/zprofile,.zfbfmarks  setf zsh
-au BufNewFile,BufRead .zsh,.zlog,.zcompdump    call s:StarSetf('zsh')
+au BufNewFile,BufRead .zshrc,.zshenv,.zlogin,.zlogout,.zcompdump setf zsh
 au BufNewFile,BufRead *.zsh                    setf zsh
 
 " Scheme
@@ -2087,9 +2088,6 @@ au BufNewFile,BufRead .tcshrc*    call dist#ft#SetFileTypeShell("tcsh")
 " csh scripts ending in a star
 au BufNewFile,BufRead .login*,.cshrc*  call dist#ft#CSH()
 
-" Z-Shell script ending in a star
-au BufNewFile,BufRead .zsh*,.zlog*,.zcompdump*  call s:StarSetf('zsh')
-
 " Vim script
 au BufNewFile,BufRead *vimrc*                  call s:StarSetf('vim')
 
@@ -2117,7 +2115,8 @@ au BufNewFile,BufRead */etc/xinetd.d/*            call s:StarSetf('xinetd')
 " yum conf (close enough to dosini)
 au BufNewFile,BufRead */etc/yum.repos.d/*      call s:StarSetf('dosini')
 
-" Z-Shell script
+" Z-Shell script ending in a star
+au BufNewFile,BufRead .zsh*,.zlog*,.zcompdump*  call s:StarSetf('zsh')
 au BufNewFile,BufRead zsh*,zlog*               call s:StarSetf('zsh')
 
 
index 575f0df08a44904424a98124aee974f7c7ebc723..8584fceeedd31382a8ddbc5af6a76f4a1dface88 100644 (file)
@@ -791,6 +791,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    775,
 /**/
     774,
 /**/