aboutsummaryrefslogtreecommitdiff
path: root/src/path.c
diff options
context:
space:
mode:
authorJohn Schmidt <john.schmidt.h@gmail.com>2014-03-31 00:51:46 +0200
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-01 08:08:07 -0300
commit7464b07c225629b3969cfdcd135f4ac1fa0b7a0b (patch)
tree0a386d6e94b8ecc414d15841364c22b4c9efdcc1 /src/path.c
parent703490359118ecb2f66d3529b57771fd3dcff5b7 (diff)
downloadrneovim-7464b07c225629b3969cfdcd135f4ac1fa0b7a0b.tar.gz
rneovim-7464b07c225629b3969cfdcd135f4ac1fa0b7a0b.tar.bz2
rneovim-7464b07c225629b3969cfdcd135f4ac1fa0b7a0b.zip
Move mch_expandpath from os_unix.c
Diffstat (limited to 'src/path.c')
-rw-r--r--src/path.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/path.c b/src/path.c
index eaa4b87a02..99a4cec6cf 100644
--- a/src/path.c
+++ b/src/path.c
@@ -1761,3 +1761,19 @@ int pathcmp(const char *p, const char *q, int maxlen)
}
#endif
+#ifndef NO_EXPANDPATH
+/*
+ * Expand a path into all matching files and/or directories. Handles "*",
+ * "?", "[a-z]", "**", etc.
+ * "path" has backslashes before chars that are not to be expanded.
+ * Returns the number of matches found.
+ */
+int mch_expandpath(gap, path, flags)
+garray_T *gap;
+char_u *path;
+int flags; /* EW_* flags */
+{
+ return unix_expandpath(gap, path, 0, flags, FALSE);
+}
+#endif
+