diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-08-10 19:50:26 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-08-10 19:50:26 +0200 |
commit | 2d7c47de45e215c787f826ebbcfa3d8ef00e26fe (patch) | |
tree | de84a9be5764dabed57a5e6304ff946109b2754f | |
parent | d5ee95f964aeeba1e141aec362da0a56bcccdb78 (diff) |
Make :find completion work better with the DJGPP build. (Nazri Ramliy)
-rw-r--r-- | src/ex_getln.c | 2 | ||||
-rw-r--r-- | src/misc1.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c index 2475bb9c12..d2925535e4 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -5040,7 +5040,7 @@ globpath(path, file, expand_options) copy_option_part(&path, buf, MAXPATHL, ","); if (STRLEN(buf) + STRLEN(file) + 2 < MAXPATHL) { -# ifdef WIN3264 +# if defined(MSWIN) || defined(MSDOS) /* 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))) diff --git a/src/misc1.c b/src/misc1.c index 911ba4a217..fd4e4fe669 100644 --- a/src/misc1.c +++ b/src/misc1.c @@ -9374,7 +9374,7 @@ get_path_cutoff(fname, gap) int j = 0; while ((fname[j] == path_part[i][j] -#if defined(WIN3264) +# if defined(MSWIN) || defined(MSDOS) || (vim_ispathsep(fname[j]) && vim_ispathsep(path_part[i][j])) #endif ) && fname[j] != NUL && path_part[i][j] != NUL) @@ -9389,7 +9389,7 @@ get_path_cutoff(fname, gap) /* Skip to the file or directory name */ if (cutoff != NULL) while ( -#if defined(WIN3264) +# if defined(MSWIN) || defined(MSDOS) *cutoff == '/' #else vim_ispathsep(*cutoff) @@ -9460,7 +9460,7 @@ uniquefy_paths(gap, pattern) len = (int)STRLEN(path); while (dir_end > path && -#if defined(WIN3264) +# if defined(MSWIN) || defined(MSDOS) *dir_end != '/' #else !vim_ispathsep(*dir_end) |