Re: Bug in 7.0.178? redir => var makes vim crash (sometimes)

2007-01-02 Thread Thomas
It doesn't crash always. Sometimes I have to call the function twice. I use: VIM - Vi IMproved 7.0 (2006 May 7, compiled Dec 16 2006 08:23:08) MS-Windows 32 bit GUI version with OLE support Included patches: 1-178 Compiled @SAMSON Big version with GUI. Features included (+) or not (-): +arab

Bug in 7.0.178? redir => var makes vim crash (sometimes)

2007-01-02 Thread Thomas
Hi, The following code makes vim crash sometimes. fun! MakeVimCrash() redir => lets silent let redir END endf call MakeVimCrash() It doesn't crash always. Sometimes I have to call the function twice. I now ran a few more tests. It appears that vim is more likely to crash when loadi

Bug in 7.0.178? autocmd BufReadCmd * DoSomething expand("") fails if the filename contains %

2007-01-02 Thread Thomas
Hi, I have the following line in my source: exec 'autocmd BufReadCmd '. pattern .' call '. rcmd .'(1, expand(""), "", "%")' This fails if the filename contains % which is replaced with expand('%'). I can't seem to escape the % at any point, can I? Wrapping the exand("") in a escape(<>, "%") d