patch 9.1.1206: tests: test_filetype fails when a file is a directory
Commit:
https://github.com/vim/vim/commit/63a885b6506ce90050c1e3515836db06853cd0d7
Author: Christian Brabandt <[email protected]>
Date: Sat Mar 15 10:19:48 2025 +0100
patch 9.1.1206: tests: test_filetype fails when a file is a directory
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: #16894
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index 27733953f..02cab62a4 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -938,6 +938,9 @@ def s:CheckItems(checks: dict<list<string>>)
for [ft, names] in items(checks)
for i in range(0, len(names) - 1)
+ if isdirectory(fnameescape(names[i]))
+ continue
+ endif
new
try
exe 'edit ' .. fnameescape(names[i])
diff --git a/src/version.c b/src/version.c
index a5833422c..27ea59644 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1206,
/**/
1205,
/**/
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1ttNqF-00Bhds-FR%40256bit.org.