Skip to content

Commit

Permalink
Fix root file comment matching
Browse files Browse the repository at this point in the history
The root file comment is referenced everywhere as being uppercase "TEX", this commit changes the regex from lowercase to uppercase.
  • Loading branch information
ChrisLane committed Mar 25, 2018
1 parent 9855f08 commit 4aa445e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/latexlivepreview.vim
Original file line number Diff line number Diff line change
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 4aa445e

Please sign in to comment.