On Friday, June 29, 2012 9:08:48 AM UTC-5, (unknown) wrote:
> Status: New
> Owner: ----
> Labels: Type-Defect Priority-Medium
> 
> New issue 72 by [email protected]: :vimgrep with 'autochdir' set causes  
> second match to be mis-located in CWD.
> http://code.google.com/p/vim/issues/detail?id=72
> 
> What steps will reproduce the problem?
> 
> $ cd /tmp
> $ vim -N -u NONE
> :set autochdir
> :vimgrep Bram $VIMRUNTIME/f*.vim
> :clist
>   1 filetype.vim:3 col 15: " Maintainer:   Bram Moolenaar <[email protected]>
>   2 /tmp/ftoff.vim:3 col 15: " Maintainer:   Bram Moolenaar <[email protected]>
>   3 ftplugin.vim:3 col 15: " Maintainer:   Bram Moolenaar <[email protected]>
>   4 ftplugof.vim:3 col 15: " Maintainer:   Bram Moolenaar <[email protected]>
> :echo expand('%:p')
> /usr/local/share/vim/vim73/filetype.vim
> :cnext
> " An empty buffer opens, not the expected file
> :echo expand('%:p')
> /tmp/ftoff.vim
> 
> 

I can confirm on Windows with version 7.3.556.

This is very strange, because only the 2nd results seems affected. This issue 
seems similar to that fixed by patch 509. The difference is patch 509 fixed 
that the files were never found by Vim, this issue seems to be with presenting 
the result files to the user. I wonder if patch 509 was not quite complete. See 
the discussion:

https://groups.google.com/d/topic/vim_dev/wdpTBivvuPo/discussion

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui