mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
vim-patch:9.1.1206: tests: test_filetype fails when a file is a directory (#32905)
Problem: tests: test_filetype fails when a file is a directory
(Eisuke Kawashima)
Solution: When encountering a directory instead of a file, skip that
particular filetype test
fixes: vim/vim#16894
63a885b650
Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -934,6 +934,9 @@ func CheckItems(checks)
|
||||
set noswapfile
|
||||
for [ft, names] in items(a:checks)
|
||||
for i in range(0, len(names) - 1)
|
||||
if isdirectory(fnameescape(names[i]))
|
||||
continue
|
||||
endif
|
||||
new
|
||||
try
|
||||
exe 'edit ' .. fnameescape(names[i])
|
||||
|
Reference in New Issue
Block a user