forked from aniani/vim
Fix: With 'path' set to relative directory ":find" completion didn't work.
(Nazri Ramliy)
This commit is contained in:
@@ -9347,8 +9347,13 @@ expand_path_option(curdir, gap)
|
|||||||
continue;
|
continue;
|
||||||
STRMOVE(buf + curdir_len + 1, buf);
|
STRMOVE(buf + curdir_len + 1, buf);
|
||||||
STRCPY(buf, curdir);
|
STRCPY(buf, curdir);
|
||||||
add_pathsep(buf);
|
buf[curdir_len] = PATHSEP;
|
||||||
STRMOVE(buf + curdir_len, buf + curdir_len + 1);
|
/*
|
||||||
|
* 'path' may have "./baz" as one of the items.
|
||||||
|
* If curdir is "/foo/bar", p will end up being "/foo/bar/./baz".
|
||||||
|
* Simplify it.
|
||||||
|
*/
|
||||||
|
simplify_filename(buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ga_grow(gap, 1) == FAIL)
|
if (ga_grow(gap, 1) == FAIL)
|
||||||
|
Reference in New Issue
Block a user