Fix #310: Enable spell checking at toplevel

This commit is contained in:
Karl Yngve Lervåg 2016-01-07 23:18:37 +01:00
parent d802117c9c
commit ec73e1661e
3 changed files with 11 additions and 0 deletions

View File

@ -11,6 +11,10 @@ elseif b:current_syntax !=# 'tex'
finish
endif
" Perform spell checking when there is no syntax
" - This will enable spell checking e.g. in toplevel of included files
syntax spell toplevel
" {{{1 Italic font, bold font and conceals
let conceal = (has('conceal') && get(g:, 'tex_conceal', 'b') =~# 'b')

5
test/issue/310/main.tex Normal file
View File

@ -0,0 +1,5 @@
\documentclass{minimal}
\begin{document}
This is corrrectly spell cheked.
\input{subfile.tex}
\end{document}

View File

@ -0,0 +1,2 @@
This ins't
% but coments are