Pavol Juhas wrote:

> I have noticed that vim can do expansion of named directories that are
> defined in zsh, but this expansion fails if the resulting path
> contains spaces.  This can be tested by creating a new directory
> "$HOME/a b" and adding the following line to ~/.zshenv
> 
> hash -d abc="$HOME/a b"
> 
> When vim is started as "SHELL=/bin/zsh vim"
> 
> :echo expand('~abc')
> 
> produces
> 
> /home/user/a
> b
> 
> Vim expands ~abc by running "print -N ~abc > tmpfile" in the shell
> (which writes NUL to the end of tmpfile), but when checking for
> separator, it would not detect NUL at the last position.  The attached
> patch seems to fix that.

Thanks, I'll include the patch.


-- 
On the other hand, you have different fingers.
                                      -- Steven Wright

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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Raspunde prin e-mail lui