Hi list,
there have been a couple of reports on the F9-completion not working
properly in \cite{} recently. Since I have been bitten myself, I've
taken a look at the problem. Seems at one point the recent
fnameescape-patch overlooked to expand a string before escaping, and on
two occasions the same cd-related bug that I've reported in my other
email hit in the completion code.
I have tested this with vim-latex-1.5-20090804-r1058 and vim 7.1.138 and
vim 7.2.22. The error message was something like:
Error detected while processing function Tex_Complete:
line 9:
E15: Invalid expression: %:p:h)
E116: Invalid arguments for function fnameescape(%:p:h)
E15: Invalid expression: 'cd '.fnameescape(%:p:h)
line 74:
E344: Can't find directory "s:origdir" in cdpath
E472: Command failed
I've included a patch against vim-latex-1.5-20090804-r1058 that fixes
this problem for me.
Cheers,
Alex
|