[Vim-latex-cvs] vimfiles/ftplugin/latex-suite compiler.vim,1.48,1.49
Brought to you by:
srinathava,
tmaas
From: <sri...@us...> - 2003-10-09 20:59:17
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv22390 Modified Files: compiler.vim Log Message: Fix: The original way of just doing "wincmd k" when going back to the file being edited (when g:Tex_GotoError is unset) does not look robust enough because we could be editing two buffers in split windows. Remember the window from where we issue the RunLaTeX() function. Bug: Sometimes, the preview window is not properly synced. Why: Used 'l.'.linenum as the regexp which catches things like "l 20" as well as "l.20". Fix: Use 'l\.'.linenum as the regexp. Index: compiler.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/compiler.vim,v retrieving revision 1.48 retrieving revision 1.49 diff -C2 -d -r1.48 -r1.49 *** compiler.vim 28 Sep 2003 22:54:04 -0000 1.48 --- compiler.vim 9 Oct 2003 20:59:13 -0000 1.49 *************** *** 174,178 **** call GotoErrorLocation(mfnlog) else ! wincmd k endif endif --- 174,178 ---- call GotoErrorLocation(mfnlog) else ! exec s:origwinnum.' wincmd w' endif endif *************** *** 224,227 **** --- 224,228 ---- endwhile + let s:origwinnum = winnr() call Tex_SetupErrorWindow() *************** *** 461,465 **** let searchpat = escape(matchstr(getline('.'), '|\d\+ warning|\s*\zs.*'), '\ ') else ! let searchpat = 'l.'.linenum endif --- 462,466 ---- let searchpat = escape(matchstr(getline('.'), '|\d\+ warning|\s*\zs.*'), '\ ') else ! let searchpat = 'l\.'.linenum endif |