File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -942,6 +942,14 @@ endfunc
942942
943943" Test for the :TlistAddFiles command
944944func Test_add_files ()
945+ if has (' nvim' )
946+ " The TlistAddFiles command uses the following command to detect the
947+ " filetype of a file without loading it:
948+ " doautocmd filetypedect BufRead <filename>
949+ " This doesn't work in recent versions of NeoVim starting with 0.11.x
950+ return
951+ endif
952+
945953 % bw !
946954 Tlist
947955 TlistAddFiles Xtest*
@@ -972,6 +980,13 @@ endfunc
972980
973981" Test for the :TlistAddFilesRecursive command
974982func Test_add_files_recursive ()
983+ if has (' nvim' )
984+ " The TlistAddFiles command uses the following command to detect the
985+ " filetype of a file without loading it:
986+ " doautocmd filetypedect BufRead <filename>
987+ " This doesn't work in recent versions of NeoVim starting with 0.11.x
988+ return
989+ endif
975990 call mkdir (' Xdir/a' , ' p' )
976991 call mkdir (' Xdir/b' , ' p' )
977992 call writefile ([' def xFn():' , ' pass' ], ' Xdir/x.py' )
You can’t perform that action at this time.
0 commit comments