[Vim-latex-cvs] vimfiles/ftplugin/latex-suite packages.vim,1.32,1.33
Brought to you by:
srinathava,
tmaas
From: <sri...@us...> - 2003-06-13 21:41:30
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv28775 Modified Files: packages.vim Log Message: Bug: When a \usepackage line is found, then a spurious { is inserted into the search history. (A. S. Budden, Mpiktas) Cause: a "normal! /{\<CR>" command is executed. Solution: call histdel at the end of the function. Index: packages.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages.vim,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -d -r1.32 -r1.33 *** packages.vim 8 Apr 2003 08:45:01 -0000 1.32 --- packages.vim 13 Jun 2003 21:41:27 -0000 1.33 *************** *** 428,431 **** --- 428,438 ---- exe pos + " first make a random search so that we push at least one item onto the + " search history. Since vim puts only one item in the history per function + " call, this way we make sure that one and only item is put into the + " search history. + normal! /^<CR> + " now delete it... + call histdel('/', -1) endfunction |