Skip to content

Commit

Permalink
Merge pull request #61 from ChrisLane/patch-1
Browse files Browse the repository at this point in the history
Fix root file comment matching
  • Loading branch information
badouralix committed Sep 25, 2018
2 parents c573115 + 4aa445e commit 855c309
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/latexlivepreview.vim
Expand Up @@ -107,7 +107,7 @@ EEOOFF
" eventually fallback to the current file.
" TODO: emulate -parse-first-line properly
let l:root_line = substitute(getline(1),
\ '\v^\s*\%\s*!tex\s*root\s*\=\s*(.*)\s*$',
\ '\v^\s*\%\s*!TEX\s*root\s*\=\s*(.*)\s*$',
\ '\1', '')
if (a:0 > 0)
let l:root_file = fnamemodify(a:1, ':p')
Expand Down

0 comments on commit 855c309

Please sign in to comment.