Yasuhiro Matsumoto wrote:

> I always set $HOME as 'c:/docume~1/mattn' to avoid strange behavior of unix 
> like tools on windows.
> But it make a bug that fnamemodify(expand('~/vimfiles'), ':p:8') don't return 
> '~/vimfiles'.
> About argument 'src' in home_replace, it will be passed as full path. So 
> homedir_env should be converted full path before comparing.
> 
> https://gist.github.com/2412113
> 
> Please check and include.

Why use the GetLongPathName function?  It's not used anywhere in Vim.
Can we use vim_FullName() with the force argument set to TRUE?

I suppose this is only needed for MS-Windows.  Since expanding a path is
expensive we might first check if the "~" character appears in the
string.

-- 
ARTHUR: Listen, old crone!  Unless you tell us where we can buy a shrubbery,
        my friend and I will ... we will say "Ni!"
CRONE:  Do your worst!
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

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