diff --git a/ftplugin/latextoc.vim b/ftplugin/latextoc.vim index 65315de..8ff3545 100644 --- a/ftplugin/latextoc.vim +++ b/ftplugin/latextoc.vim @@ -88,9 +88,9 @@ function! s:TOCActivate(close) " Find section in buffer (or inputted files) if entry['level'] == 'label' - let re = '\(\\label\_\s*{\|label\s*=\s*\)' . titlestr . '\>' + let re = '\(\\label\_\s*{\|label\s*=\s*\)' . titlestr . '\>\c' else - let re = '\\' . entry['level'] . '\_\s*{' . titlestr . '}' + let re = '\\' . entry['level'] . '\_\s*{' . titlestr . '}\c' endif call s:TOCFindMatch(re, duplicates, files)