[Vim-latex-devel] FixMe in texviewer.vim
Brought to you by:
srinathava,
tmaas
From: Aditya M. <adi...@al...> - 2004-08-14 05:00:04
|
Hello, In the latest version of latex-suite, there is a fixme in function Tex_GrepHelper() line 462: texviewer.vim let mainfname = Tex_GetMainFileName(':p') " If we are already editing the file, then use :split without any " arguments so it works even if the file is modified. " FIXME: If mainfname is being presently edited in another window and " is 'modified', then the second split statement will not work. " We will need to travel to that window and back. if mainfname == expand('%:p') split else exec 'split '.mainfname endif I think that this can be corrected as follows let mainfname = Tex_GerMainFileName(':p') " If mainfname is currently being edited, split if mainfname == expand('%:p') split " if mainfname is open in another window, drop elseif bufwinnr(mainfname) != -1 exec 'drop '.mainfname else exec 'split '.mainfname endif Aditya -- Aditya Mahajan, EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam || Ph: 7342624008 |