Skip to content

Commit fc4e70a

Browse files
clasonFreed-Wu
andcommitted
vim-patch:9.1.0243: filetype: netrw history file is not recognized
Problem: filetype: netrw history file is not recognized Solution: Detect .netrwhist as vim files (Wu, Zhenyu) closes: vim/vim#14364 vim/vim@abbb4a4 Co-authored-by: Wu, Zhenyu <[email protected]>
1 parent 099b18f commit fc4e70a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

runtime/lua/vim/filetype.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1542,6 +1542,7 @@ local filename = {
15421542
vgrindefs = 'vgrindefs',
15431543
['.exrc'] = 'vim',
15441544
['_exrc'] = 'vim',
1545+
['.netrwhist'] = 'vim',
15451546
['_viminfo'] = 'viminfo',
15461547
['.viminfo'] = 'viminfo',
15471548
['.wgetrc'] = 'wget',

test/old/testdir/test_filetype.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ func s:GetFilenameChecks() abort
707707
\ 'vgrindefs': ['vgrindefs'],
708708
\ 'vhdl': ['file.hdl', 'file.vhd', 'file.vhdl', 'file.vbe', 'file.vst', 'file.vhdl_123', 'file.vho', 'some.vhdl_1', 'some.vhdl_1-file'],
709709
\ 'vhs': ['file.tape'],
710-
\ 'vim': ['file.vim', '.exrc', '_exrc', 'some-vimrc', 'some-vimrc-file', 'vimrc', 'vimrc-file'],
710+
\ 'vim': ['file.vim', '.exrc', '_exrc', 'some-vimrc', 'some-vimrc-file', 'vimrc', 'vimrc-file', '.netrwhist'],
711711
\ 'viminfo': ['.viminfo', '_viminfo'],
712712
\ 'vmasm': ['file.mar'],
713713
\ 'voscm': ['file.cm'],

0 commit comments

Comments
 (0)