0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

Make :find completion work better with the DJGPP build. (Nazri Ramliy)

This commit is contained in:
Bram Moolenaar 2010-08-10 19:50:26 +02:00
parent d5ee95f964
commit 2d7c47de45
2 changed files with 4 additions and 4 deletions

View File

@ -5040,7 +5040,7 @@ globpath(path, file, expand_options)
copy_option_part(&path, buf, MAXPATHL, ","); copy_option_part(&path, buf, MAXPATHL, ",");
if (STRLEN(buf) + STRLEN(file) + 2 < MAXPATHL) if (STRLEN(buf) + STRLEN(file) + 2 < MAXPATHL)
{ {
# ifdef WIN3264 # if defined(MSWIN) || defined(MSDOS)
/* Using the platform's path separator (\) makes vim incorrectly /* Using the platform's path separator (\) makes vim incorrectly
* treat it as an escape character, use '/' instead. */ * treat it as an escape character, use '/' instead. */
if (*buf != NUL && !after_pathsep(buf, buf + STRLEN(buf))) if (*buf != NUL && !after_pathsep(buf, buf + STRLEN(buf)))

View File

@ -9374,7 +9374,7 @@ get_path_cutoff(fname, gap)
int j = 0; int j = 0;
while ((fname[j] == path_part[i][j] 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])) || (vim_ispathsep(fname[j]) && vim_ispathsep(path_part[i][j]))
#endif #endif
) && fname[j] != NUL && path_part[i][j] != NUL) ) && fname[j] != NUL && path_part[i][j] != NUL)
@ -9389,7 +9389,7 @@ get_path_cutoff(fname, gap)
/* Skip to the file or directory name */ /* Skip to the file or directory name */
if (cutoff != NULL) if (cutoff != NULL)
while ( while (
#if defined(WIN3264) # if defined(MSWIN) || defined(MSDOS)
*cutoff == '/' *cutoff == '/'
#else #else
vim_ispathsep(*cutoff) vim_ispathsep(*cutoff)
@ -9460,7 +9460,7 @@ uniquefy_paths(gap, pattern)
len = (int)STRLEN(path); len = (int)STRLEN(path);
while (dir_end > path && while (dir_end > path &&
#if defined(WIN3264) # if defined(MSWIN) || defined(MSDOS)
*dir_end != '/' *dir_end != '/'
#else #else
!vim_ispathsep(*dir_end) !vim_ispathsep(*dir_end)