diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2020-02-02 21:46:51 -0800 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2020-02-02 22:14:40 -0800 |
commit | d1d5f5103e2225749f31aa918a17089082029eae (patch) | |
tree | badbc9981b12e6f993e568f594f1db1ddc7c5d6d /src/nvim/path.c | |
parent | 983086f42e5841b84d5b24623a51ffc8c725e78f (diff) | |
download | rneovim-d1d5f5103e2225749f31aa918a17089082029eae.tar.gz rneovim-d1d5f5103e2225749f31aa918a17089082029eae.tar.bz2 rneovim-d1d5f5103e2225749f31aa918a17089082029eae.zip |
refactor: move various things to os/shell.c
- No code changes
- Rename mch_expand_wildcards => os_expand_wildcards
Diffstat (limited to 'src/nvim/path.c')
-rw-r--r-- | src/nvim/path.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/path.c b/src/nvim/path.c index 0142724a5b..31318f6bea 100644 --- a/src/nvim/path.c +++ b/src/nvim/path.c @@ -1178,7 +1178,7 @@ int gen_expand_wildcards(int num_pat, char_u **pat, int *num_file, */ if (recursive) #ifdef SPECIAL_WILDCHAR - return mch_expand_wildcards(num_pat, pat, num_file, file, flags); + return os_expand_wildcards(num_pat, pat, num_file, file, flags); #else return FAIL; #endif @@ -1193,7 +1193,7 @@ int gen_expand_wildcards(int num_pat, char_u **pat, int *num_file, for (int i = 0; i < num_pat; i++) { if (has_special_wildchar(pat[i]) && !(vim_backtick(pat[i]) && pat[i][1] == '=')) { - return mch_expand_wildcards(num_pat, pat, num_file, file, flags); + return os_expand_wildcards(num_pat, pat, num_file, file, flags); } } #endif @@ -1233,8 +1233,8 @@ int gen_expand_wildcards(int num_pat, char_u **pat, int *num_file, else if (has_env_var(p) || *p == '~') { xfree(p); ga_clear_strings(&ga); - i = mch_expand_wildcards(num_pat, pat, num_file, file, - flags | EW_KEEPDOLLAR); + i = os_expand_wildcards(num_pat, pat, num_file, file, + flags | EW_KEEPDOLLAR); recursive = false; return i; } |