mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 15:08:35 +00:00
vim-patch:8.2.4305: tex filetype detection fails
Problem: Tex filetype detection fails.
Solution: Check value to be positive. (closes vim/vim#9704)
e5b7897585
This commit is contained in:
@@ -1277,4 +1277,23 @@ func Test_frm_file()
|
||||
filetype off
|
||||
endfunc
|
||||
|
||||
func Test_tex_file()
|
||||
filetype on
|
||||
|
||||
" only tests one case, should do more
|
||||
let lines =<< trim END
|
||||
% This is a sentence.
|
||||
|
||||
This is a sentence.
|
||||
END
|
||||
call writefile(lines, "Xfile.tex")
|
||||
split Xfile.tex
|
||||
call assert_equal('plaintex', &filetype)
|
||||
bwipe
|
||||
|
||||
call delete('Xfile.tex')
|
||||
filetype off
|
||||
endfunc
|
||||
|
||||
|
||||
" vim: shiftwidth=2 sts=2 expandtab
|
||||
|
Reference in New Issue
Block a user