]> granicus.if.org Git - vim/commitdiff
patch 8.2.4187: gnuplot file not recognized v8.2.4187
authornobodyatandnothing <you@example.com>
Sun, 23 Jan 2022 11:19:37 +0000 (11:19 +0000)
committerBram Moolenaar <Bram@vim.org>
Sun, 23 Jan 2022 11:19:37 +0000 (11:19 +0000)
Problem:    Gnuplot file not recognized.
Solution:   Recognize ".gnuplot". (closes #9588)

runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index acb87ff93415ce9051e4a96972c6a63efae16cc3..15fd7f4ab426f8729b89f5779bfc77f03d5a6739 100644 (file)
@@ -714,7 +714,7 @@ au BufNewFile,BufRead gitolite.conf         setf gitolite
 au BufNewFile,BufRead {,.}gitolite.rc,example.gitolite.rc      setf perl
 
 " Gnuplot scripts
-au BufNewFile,BufRead *.gpi                    setf gnuplot
+au BufNewFile,BufRead *.gpi,.gnuplot           setf gnuplot
 
 " Go (Google)
 au BufNewFile,BufRead *.go                     setf go
index ff2af5fb3848b4c3cc87822e32e34e35d0e2ebcc..fb1aa6349a6dd047a84d9f1456fbb652ff0f1afb 100644 (file)
@@ -203,7 +203,7 @@ let s:filename_checks = {
     \ 'gitsendemail': ['.gitsendemail.msg.xxxxxx'],
     \ 'gkrellmrc': ['gkrellmrc', 'gkrellmrc_x'],
     \ 'gnash': ['gnashrc', '.gnashrc', 'gnashpluginrc', '.gnashpluginrc'],
-    \ 'gnuplot': ['file.gpi'],
+    \ 'gnuplot': ['file.gpi', '.gnuplot'],
     \ 'go': ['file.go'],
     \ 'gomod': ['go.mod'],
     \ 'gp': ['file.gp', '.gprc'],
index 8e659e0286d2b59b49c36167e0bf077ea0ea61b1..1d5160f5e78e8a870510f9bfa54a743c3bff7464 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4187,
 /**/
     4186,
 /**/