]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0239: filetype: gnuplot history files are not recognised v9.1.0239
authorWu, Zhenyu <wuzhenyu@ustc.edu>
Sun, 31 Mar 2024 17:10:18 +0000 (19:10 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 31 Mar 2024 17:10:18 +0000 (19:10 +0200)
Problem:  filetype: gnuplot history files are not recognised
Solution: detect .gnuplot_history files as gnuplot
          (Wu, Zhenyu)

closes: #14360

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index bda088531a68e9c58d718e1d15139f4e35a77aaf..01c91bf22daffaa15f383ccf829c5277714b4b55 100644 (file)
@@ -865,7 +865,7 @@ au BufNewFile,BufRead *.gts                 setf typescript.glimmer
 au BufNewFile,BufRead *.gjs                    setf javascript.glimmer
 
 " Gnuplot scripts
-au BufNewFile,BufRead *.gpi,*.gnuplot          setf gnuplot
+au BufNewFile,BufRead *.gpi,*.gnuplot,.gnuplot_history setf gnuplot
 
 " Go (Google)
 au BufNewFile,BufRead *.go                     setf go
index d84805f166b347c2403017176650065487f1665e..470bdfd843f0b7cfbe65d1a38d7641ef32e706ae 100644 (file)
@@ -283,7 +283,7 @@ def s:GetFilenameChecks(): dict<list<string>>
     glsl: ['file.glsl'],
     gn: ['file.gn', 'file.gni'],
     gnash: ['gnashrc', '.gnashrc', 'gnashpluginrc', '.gnashpluginrc'],
-    gnuplot: ['file.gpi', '.gnuplot', 'file.gnuplot'],
+    gnuplot: ['file.gpi', '.gnuplot', 'file.gnuplot', '.gnuplot_history'],
     go: ['file.go'],
     gomod: ['go.mod'],
     gosum: ['go.sum', 'go.work.sum'],
index b1844bfdaa5f17a081ab9eb033e3151df597f7f8..e05ab84cbce29ce5095998f7815997c1f352ea8a 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    239,
 /**/
     238,
 /**/