changeset 26133:a71175404e4e v8.2.3599

patch 8.2.3599: not all gdbinit files are recognized Commit: https://github.com/vim/vim/commit/782b4bbc163e03ebe98d25bc62b9d82cba8f91a1 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Nov 16 11:10:11 2021 +0000 patch 8.2.3599: not all gdbinit files are recognized Problem: Not all gdbinit files are recognized. Solution: Add "gdbinit". (Doug Kearns)
author Bram Moolenaar <Bram@vim.org>
date Tue, 16 Nov 2021 12:15:03 +0100
parents 24efeff065c1
children 9000a48b4c30
files runtime/filetype.vim src/testdir/test_filetype.vim src/version.c
diffstat 3 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -647,7 +647,7 @@ au BufNewFile,BufRead *.fsl			setf frame
 au BufNewFile,BufRead fstab,mtab		setf fstab
 
 " GDB command files
-au BufNewFile,BufRead .gdbinit			setf gdb
+au BufNewFile,BufRead .gdbinit,gdbinit		setf gdb
 
 " GDMO
 au BufNewFile,BufRead *.mo,*.gdmo		setf gdmo
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -188,7 +188,7 @@ let s:filename_checks = {
     \ 'freebasic': ['file.fb', 'file.bi'],
     \ 'fstab': ['fstab', 'mtab'],
     \ 'fvwm': ['/.fvwm/file', 'any/.fvwm/file'],
-    \ 'gdb': ['.gdbinit'],
+    \ 'gdb': ['.gdbinit', 'gdbinit'],
     \ 'gdmo': ['file.mo', 'file.gdmo'],
     \ 'gedcom': ['file.ged', 'lltxxxxx.txt', '/tmp/lltmp', '/tmp/lltmp-file', 'any/tmp/lltmp', 'any/tmp/lltmp-file'],
     \ 'gemtext': ['file.gmi', 'file.gemini'],
--- a/src/version.c
+++ b/src/version.c
@@ -758,6 +758,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    3599,
+/**/
     3598,
 /**/
     3597,