mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 15:21:47 +00:00
Un-mch mch_has_(exp_)wildcard().
Merge mch_has_wildcard() and mch_has_exp_wildcar() with their upstream equivalents for Windows and replace the "mch_" suffix with "path_".
This commit is contained in:

committed by
Thiago de Arruda

parent
99869989c8
commit
3f74067565
@@ -3432,7 +3432,7 @@ int expand_filename(exarg_T *eap, char_u **cmdlinep, char_u **errormsgp)
|
||||
* the file name contains a wildcard it should not cause expanding.
|
||||
* (it will be expanded anyway if there is a wildcard before replacing).
|
||||
*/
|
||||
has_wildcards = mch_has_wildcard(p);
|
||||
has_wildcards = path_has_wildcard(p);
|
||||
while (*p != NUL) {
|
||||
/* Skip over `=expr`, wildcards in it are not expanded. */
|
||||
if (p[0] == '`' && p[1] == '=') {
|
||||
@@ -3543,7 +3543,7 @@ int expand_filename(exarg_T *eap, char_u **cmdlinep, char_u **errormsgp)
|
||||
|| vim_strchr(eap->arg, '~') != NULL) {
|
||||
expand_env_esc(eap->arg, NameBuff, MAXPATHL,
|
||||
TRUE, TRUE, NULL);
|
||||
has_wildcards = mch_has_wildcard(NameBuff);
|
||||
has_wildcards = path_has_wildcard(NameBuff);
|
||||
p = NameBuff;
|
||||
} else
|
||||
p = NULL;
|
||||
|
Reference in New Issue
Block a user