]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0243: filetype: netrw history file is not recognized v9.1.0243
authorWu, Zhenyu <wuzhenyu@ustc.edu>
Sun, 31 Mar 2024 17:20:14 +0000 (19:20 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 31 Mar 2024 17:20:14 +0000 (19:20 +0200)
Problem:  filetype: netrw history file is not recognized
Solution: Detect .netrwhist as vim files (Wu, Zhenyu)

closes: #14364

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 be59bc0d5637b98de8289bd3aca1afc84264a0cb..c06a056294b4346beaa5893eb106cefe8ca2e355 100644 (file)
@@ -2436,7 +2436,7 @@ au BufNewFile,BufRead *.tape                      setf vhs
 au BufNewFile,BufRead *.hdl,*.vhd,*.vhdl,*.vbe,*.vst,*.vho  setf vhdl
 
 " Vim script
-au BufNewFile,BufRead *.vim,.exrc,_exrc                setf vim
+au BufNewFile,BufRead *.vim,.exrc,_exrc,.netrwhist     setf vim
 
 " Viminfo file
 au BufNewFile,BufRead .viminfo,_viminfo                setf viminfo
index 91fc51718dcee43ed322bd3d6c0f419f541942b6..c4a57a090eb22a9d6f38e4b883f1a52032951e8c 100644 (file)
@@ -785,7 +785,7 @@ def s:GetFilenameChecks(): dict<list<string>>
     vgrindefs: ['vgrindefs'],
     vhdl: ['file.hdl', 'file.vhd', 'file.vhdl', 'file.vbe', 'file.vst', 'file.vhdl_123', 'file.vho', 'some.vhdl_1', 'some.vhdl_1-file'],
     vhs: ['file.tape'],
-    vim: ['file.vim', '.exrc', '_exrc', 'some-vimrc', 'some-vimrc-file', 'vimrc', 'vimrc-file'],
+    vim: ['file.vim', '.exrc', '_exrc', 'some-vimrc', 'some-vimrc-file', 'vimrc', 'vimrc-file', '.netrwhist'],
     viminfo: ['.viminfo', '_viminfo'],
     vmasm: ['file.mar'],
     voscm: ['file.cm'],
index f236655fe2842a8f0fbd3c271f983e29e3b3985b..b89c6c874edb31717cca8e0766d2e42b2b2b5868 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    243,
 /**/
     242,
 /**/