diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-07-03 21:19:07 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-07-03 21:19:07 +0200 |
commit | ee0ee2a04638c6b511c909197ba597d329c6f3e0 (patch) | |
tree | a953c0778106fa6a4434122f212f0d7a4cdbcd1b /src/misc2.c | |
parent | 3437b911029ac92ae066fa861d886155a4b97064 (diff) | |
download | vim-git-ee0ee2a04638c6b511c909197ba597d329c6f3e0.tar.gz |
updated for version 7.3.1301v7.3.1301
Problem: Some tests fail on MS-Windows.
Solution: Fix path separators in test 89 and 96. Omit test 97, escaping
works differently. Make findfile() work on MS-Windows.
Diffstat (limited to 'src/misc2.c')
-rw-r--r-- | src/misc2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/misc2.c b/src/misc2.c index bc1580888..960de029c 100644 --- a/src/misc2.c +++ b/src/misc2.c @@ -4693,14 +4693,14 @@ vim_findfile_init(path, filename, stopdirs, level, free_visited, find_what, #ifdef FEAT_PATH_EXTRA else { - char_u *p = vim_strrchr(search_ctx->ffsc_fix_path, PATHSEP); + char_u *p = gettail(search_ctx->ffsc_fix_path); char_u *wc_path = NUL; char_u *temp = NUL; int len = 0; - if (p != NULL) + if (p > search_ctx->ffsc_fix_path) { - len = p - search_ctx->ffsc_fix_path; + len = p - search_ctx->ffsc_fix_path - 1; STRNCAT(ff_expand_buffer, search_ctx->ffsc_fix_path, len); add_pathsep(ff_expand_buffer); } |