Genki Sky wrote:

> --> The issue
> 
> While in Command-line-mode, entering <Tab> for the :find command to
> complete a directory's name does not append the ending slash.
> 
> Example:
> 
>   vim -N -u NONE
>   :find dir<Tab>
>   " Observe that while the name is completed, no slash is appended.
> 
> This is inconsistent with :edit, :cd, etc.. It is also inconsistent
> with :find ./dir<Tab>, which is explained below.
> 
> Besides consistency, appending the slash for you makes it easier to
> proceed finding a file inside that directory. I couldn't think of any
> downside of changing this behavior, but let me know if I've missed
> something.
> 
> --> The fix
> 
> The reason this happens is that in gen_expand_wildcards() -- called
> indirectly from ExpandFromContext() -- we do a branch. If it is of
> format :find path-without-leading-dot-slash<Tab>, we call
> expand_in_path(). Though expand_in_path() does proceed to call
> globpath() and then ExpandFromContext() recursively, it only
> propagates the WILD_ICASE flag, but not the WILD_ADD_SLASH flag.
> 
> This patch fixes that.
> 
> As suggested by CONTRIBUTING.md, I have attached a unified-diff format
> patch, along with an accompanying test. Specifically, I modified
> test_find_complete.vim to check both relative and non-relative cases
> of the :find command mentioned above.
> 
> Let me know if anything else needs to be done.

Thanks. I'll look into including thes.
I hope it does not have  a problem in another situation.



-- 
hundred-and-one symptoms of being an internet addict:
206. You religiously respond immediately to e-mail, while ignoring
     your growing pile of snail mail.

 /// 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/d/optout.

Raspunde prin e-mail lui