From: Bram Moolenaar Date: Mon, 16 Aug 2010 19:53:27 +0000 (+0200) Subject: updated for version 7.3.002 X-Git-Tag: v7.3.001 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=da9836cfa9dc53679295095cd0e91d87dc0626dd;p=vim updated for version 7.3.002 Problem: ":find" completion doesn't work when halfway an environment variable. (Dominique Pelle) Solution: Only use in-path completion when expanding file names. (Nazri Ramliy) --- diff --git a/src/misc1.c b/src/misc1.c index fd178c99d..0859dc759 100644 --- a/src/misc1.c +++ b/src/misc1.c @@ -9317,7 +9317,8 @@ is_unique(maybe_unique, gap, i) continue; /* it's different when it's shorter */ rival = other_paths[j] + other_path_len - candidate_len; - if (fnamecmp(maybe_unique, rival) == 0) + if (fnamecmp(maybe_unique, rival) == 0 + && (rival == other_paths[j] || vim_ispathsep(*(rival - 1)))) return FALSE; /* match */ } diff --git a/src/version.c b/src/version.c index 79522a4f3..76d3d9e26 100644 --- a/src/version.c +++ b/src/version.c @@ -714,6 +714,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1, /**/ 0 };