On Mon, Feb 6, 2012 at 5:18 AM, Bram Moolenaar <[email protected]> wrote:
> We have had quite a few bugs in the find_file_in_path() code.
> Now the problem is that when the current directory path contains "**"
> then ":cd" fails, because it tries to expand "**" instead of taking in
> literally.

[challenge snipped]

I'd like to report that the behavior does not exist outside of $HOME:

$ cd /tmp
$ mkdir -p '**/xxx/yyy'
$ cd '**'
$ vim -u NONE
:cd yyy

It worked fine.

When done in $HOME - replace "cd /tmp" with "cd $HOME" in the script
above - the problem appears: after ":cd yyy" vim seems to be in a busy
loop.  After hitting Ctrl+C it shows the error

E344: Can't find directory"xxx" in cdpath
E472: Command failed

My vim version:

VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jan 26 2012 13:14:36)
Included patches: 1-401

So maybe the fix might be simpler than a full rewrite?

Nazri.

-- 
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