diff options
author | Christian Clason <c.clason@uni-graz.at> | 2024-03-31 19:12:30 +0200 |
---|---|---|
committer | Christian Clason <c.clason@uni-graz.at> | 2024-04-01 12:01:47 +0200 |
commit | acac56360fd0bc94a00b5fc34ae55ebb7158eb98 (patch) | |
tree | c59bafc191bb8109c068c565171e6719401f4d4e | |
parent | ce69056e956ba0957714ef649062828743545c6c (diff) | |
download | rneovim-acac56360fd0bc94a00b5fc34ae55ebb7158eb98.tar.gz rneovim-acac56360fd0bc94a00b5fc34ae55ebb7158eb98.tar.bz2 rneovim-acac56360fd0bc94a00b5fc34ae55ebb7158eb98.zip |
vim-patch:9.1.0239: filetype: gnuplot history files are not recognised
Problem: filetype: gnuplot history files are not recognised
Solution: detect .gnuplot_history files as gnuplot
(Wu, Zhenyu)
closes: vim/vim#14360
https://github.com/vim/vim/commit/8e47eb31cc8b29a223f1706730b8f4a5598d59ce
Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
-rw-r--r-- | runtime/lua/vim/filetype.lua | 1 | ||||
-rw-r--r-- | test/old/testdir/test_filetype.vim | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index 7ab01402cc..5b5c9e0af5 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -1321,6 +1321,7 @@ local filename = { ['.gnashpluginrc'] = 'gnash', gnashpluginrc = 'gnash', gnashrc = 'gnash', + ['.gnuplot_history'] = 'gnuplot', ['go.sum'] = 'gosum', ['go.work.sum'] = 'gosum', ['go.work'] = 'gowork', diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim index 7d4c8e7318..ea37b44b78 100644 --- a/test/old/testdir/test_filetype.vim +++ b/test/old/testdir/test_filetype.vim @@ -273,7 +273,7 @@ func s:GetFilenameChecks() abort \ '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'], |