From bba679c431069396ad28952620316e1f1fd97945 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Fri, 7 Jan 2022 10:27:34 +0100 Subject: vim-patch:8.2.4014: git and gitcommit file types not properly recognized (#16953) Problem: Git and gitcommit file types not properly recognized. Solution: Adjust filetype detection. (Tim Pope, closes vim/vim#9477) https://github.com/vim/vim/commit/c689f8c3d98fffe7e13730e198ce120934528f9c --- runtime/scripts.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/scripts.vim') diff --git a/runtime/scripts.vim b/runtime/scripts.vim index 3790b1c10f..e41405a6c5 100644 --- 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) -- cgit