Table of contents jumps to main TeX file, not buffer
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Vim LaTeX Box |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
I use a main TeX file set by `:let b:main_
The following patch to `motion.vim` seems to fix the problem. It jumps to the nearest match in the current buffer instead of the `.tex` file associated with the main tex file's `.aux` file:
diff --git a/ftplugin/
index 3272eaf..770766b 100644
--- a/ftplugin/
+++ b/ftplugin/
@@ -272,7 +272,8 @@ function! s:ReadTOC(auxfile)
let text = substitute(text, '^{\+\|}\+$', '', 'g')
" add TOC entry
- call add(toc, {'file': fnamemodify(
+
+ call add(toc, {'file': bufname('%'),
endfor
Changed in vim-latex-box: | |
status: | New → Fix Committed |
Removed comments from initial patch