summaryrefslogtreecommitdiff
path: root/src/ex_getln.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-08-05 21:40:16 +0200
committerBram Moolenaar <Bram@vim.org>2010-08-05 21:40:16 +0200
commit84f888a5b3640dffdff1ecd1e19e4ba6aa3ed6af (patch)
tree03d50c34b873780c1373257497bd046eac25f044 /src/ex_getln.c
parent74cbdf0334ffadf335082990464719e12cef22d3 (diff)
downloadvim-git-84f888a5b3640dffdff1ecd1e19e4ba6aa3ed6af.tar.gz
Fix a few problems for :find completion. Test much more. (Nazri Ramliy)
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r--src/ex_getln.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c
index 790d5315a..8a18a4cce 100644
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -5045,15 +5045,16 @@ globpath(path, file, expand_options)
{
/* Copy one item of the path to buf[] and concatenate the file name. */
copy_option_part(&path, buf, MAXPATHL, ",");
- if (path_with_url(buf))
- continue;
- /*
- * FIXME: should we proactively skip 'path' with limiter (/usr/ **N)
- * and upward search (;) notations, just like we did with url above?
- */
if (STRLEN(buf) + STRLEN(file) + 2 < MAXPATHL)
{
+# ifdef WIN3264
+ /* Using the platform's path separator (\) makes vim incorrectly
+ * treat it as an escape character, use '/' instead. */
+ if (*buf != NUL && !after_pathsep(buf, buf + STRLEN(buf)))
+ STRCAT(buf, "/");
+# else
add_pathsep(buf);
+# endif
STRCAT(buf, file);
if (ExpandFromContext(&xpc, buf, &num_p, &p,
WILD_SILENT|expand_options) != FAIL && num_p > 0)