aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_docmd.c
diff options
context:
space:
mode:
authorScott Prager <splinterofchaos@gmail.com>2014-09-19 19:34:47 -0400
committerThiago de Arruda <tpadilha84@gmail.com>2015-03-31 11:20:23 -0300
commit3f74067565d4661d231679303e9906d3afe2fc3f (patch)
tree1de658da5c4a170f851eae29bdad1f66e1146ab8 /src/nvim/ex_docmd.c
parent99869989c8be45033f82b567f988a67af6ffda7b (diff)
downloadrneovim-3f74067565d4661d231679303e9906d3afe2fc3f.tar.gz
rneovim-3f74067565d4661d231679303e9906d3afe2fc3f.tar.bz2
rneovim-3f74067565d4661d231679303e9906d3afe2fc3f.zip
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_".
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r--src/nvim/ex_docmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c
index 776ed844e9..db4f3a54f1 100644
--- a/src/nvim/ex_docmd.c
+++ b/src/nvim/ex_docmd.c
@@ -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;