Felix Kater wrote:

> Andreas Bernauer wrote:
> 
> > It looks like this bug was introduced with 7.2.055.
> > The attached patch against 7.2.127 seems to fix this.
> 
> Thanks again -- now I checked it with patches up to 7.2.130.
> I have the following strange behaviour now:
> 
> With some (fat old) session files it seems to work after your patch.
> 
> However, to be sure, I repeated the test of my original posting (see
> above) and so created a minimal session file.
> Compared to the original test I am using now the following
> minimal .vimrc (part of my daily work .vimrc):
> 
> --------------------
> function AlwaysCD()
>       if bufname("") !~ "^ftp://";
>               lcd %:p:h
>       endif
> endfunction
> autocmd BufEnter * call AlwaysCD()
> --------------------
> 
> That fails with this message:
> 
> --------------------
> "subfolder/test.txt" [New DIRECTORY]
> Error detected while processing function AlwaysCD:
> line    2:
> E344: Can't find directory "subfolder" in cdpath
> E472: Command failed
> Press ENTER or type command to continue
> ---------------------
> 
> Since my .vimrc with AlwaysCD worked for a long time before the recent
> patches, I think these new probs are somehow related to them.

What is the session file that opens subfodler/test.txt?  Best is if you
can give the commands to create it, thus a whole reproducible example.

-- 
Although the scythe isn't pre-eminent among the weapons of war, anyone who
has been on the wrong end of, say, a peasants' revolt will know that in
skilled hands it is fearsome.
                                        -- (Terry Pratchett, Mort)

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to