diff options
Diffstat (limited to 'src/misc1.c')
-rw-r--r-- | src/misc1.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 */ } |