Skip to content

Commit ea1e849

Browse files
committed
The TlistAddFiles command doesn't work in neovim
1 parent 811ba2b commit ea1e849

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test/unit_tests.vim

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -942,6 +942,14 @@ endfunc
942942

943943
" Test for the :TlistAddFiles command
944944
func 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
974982
func 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')

0 commit comments

Comments
 (0)