Skip to content

Commit

Permalink
The TlistAddFiles command doesn't work in neovim
Browse files Browse the repository at this point in the history
  • Loading branch information
yegappan committed Sep 25, 2024
1 parent 811ba2b commit ea1e849
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/unit_tests.vim
Original file line number Diff line number Diff line change
Expand Up @@ -942,6 +942,14 @@ endfunc

" Test for the :TlistAddFiles command
func Test_add_files()
if has('nvim')
" The TlistAddFiles command uses the following command to detect the
" filetype of a file without loading it:
" doautocmd filetypedect BufRead <filename>
" This doesn't work in recent versions of NeoVim starting with 0.11.x
return
endif

%bw!
Tlist
TlistAddFiles Xtest*
Expand Down Expand Up @@ -972,6 +980,13 @@ endfunc

" Test for the :TlistAddFilesRecursive command
func Test_add_files_recursive()
if has('nvim')
" The TlistAddFiles command uses the following command to detect the
" filetype of a file without loading it:
" doautocmd filetypedect BufRead <filename>
" This doesn't work in recent versions of NeoVim starting with 0.11.x
return
endif
call mkdir('Xdir/a', 'p')
call mkdir('Xdir/b', 'p')
call writefile(['def xFn():', ' pass'], 'Xdir/x.py')
Expand Down

0 comments on commit ea1e849

Please sign in to comment.