comparison src/misc1.c @ 2476:6be86488996b vim73

Fix: With 'path' set to relative directory ":find" completion didn't work. (Nazri Ramliy)
author Bram Moolenaar <bram@vim.org>
date Tue, 03 Aug 2010 22:11:29 +0200
parents 6570c136be32
children 81bf2aaa979a
comparison
equal deleted inserted replaced
2475:7d1044b27eb5 2476:6be86488996b
9345 9345
9346 if (curdir_len + buf_len + 3 > MAXPATHL) 9346 if (curdir_len + buf_len + 3 > MAXPATHL)
9347 continue; 9347 continue;
9348 STRMOVE(buf + curdir_len + 1, buf); 9348 STRMOVE(buf + curdir_len + 1, buf);
9349 STRCPY(buf, curdir); 9349 STRCPY(buf, curdir);
9350 add_pathsep(buf); 9350 buf[curdir_len] = PATHSEP;
9351 STRMOVE(buf + curdir_len, buf + curdir_len + 1); 9351 /*
9352 * 'path' may have "./baz" as one of the items.
9353 * If curdir is "/foo/bar", p will end up being "/foo/bar/./baz".
9354 * Simplify it.
9355 */
9356 simplify_filename(buf);
9352 } 9357 }
9353 9358
9354 if (ga_grow(gap, 1) == FAIL) 9359 if (ga_grow(gap, 1) == FAIL)
9355 break; 9360 break;
9356 p = vim_strsave(buf); 9361 p = vim_strsave(buf);