Skip to content

Commit

Permalink
feat: add warning if latexmain specifier is ignored
Browse files Browse the repository at this point in the history
refer: #2831
  • Loading branch information
lervag committed Dec 10, 2023
1 parent 8dad59a commit 29b6c05
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions autoload/vimtex/state.vim
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ function! vimtex#state#init() abort " {{{1
let [l:main, l:main_parser, l:unsupported_modules] = s:get_main()
let l:id = s:get_main_id(l:main)

if exists('s:cand_fallback')
call vimtex#log#warning(
\ 'Ignored latexmain specifier which points to: ',
\ s:cand_fallback,
\ 'Reason: That main file did not include this file!',
\)
unlet s:cand_fallback
endif

if l:id >= 0
let b:vimtex_id = l:id
let b:vimtex = s:vimtex_states[l:id]
Expand Down

0 comments on commit 29b6c05

Please sign in to comment.