diff runtime/scripts.vim @ 26970:733295e9d755 v8.2.4014

patch 8.2.4014: git and gitcommit file types not properly recognized Commit: https://github.com/vim/vim/commit/c689f8c3d98fffe7e13730e198ce120934528f9c Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jan 5 20:56:38 2022 +0000 patch 8.2.4014: git and gitcommit file types not properly recognized Problem: Git and gitcommit file types not properly recognized. Solution: Adjust filetype detection. (Tim Pope, closes https://github.com/vim/vim/issues/9477)
author Bram Moolenaar <Bram@vim.org>
date Wed, 05 Jan 2022 22:00:04 +0100
parents ce3678583211
children 0b5ce27d8b68
line wrap: on
line diff
--- a/runtime/scripts.vim
+++ b/runtime/scripts.vim
@@ -384,7 +384,7 @@ else
     set ft=scheme
 
   " Git output
-  elseif s:line1 =~# '^\(commit\|tree\|object\) \x\{40\}\>\|^tag \S\+$'
+  elseif s:line1 =~# '^\(commit\|tree\|object\) \x\{40,\}\>\|^tag \S\+$'
     set ft=git
 
    " Gprof (gnu profiler)