1
0
forked from aniani/vim

updated for version 7.0023

This commit is contained in:
Bram Moolenaar
2004-12-19 22:46:22 +00:00
parent 46c9c73de8
commit 1cd871b534
76 changed files with 2397 additions and 1391 deletions

View File

@@ -3258,7 +3258,7 @@ simplify_filename(filename)
tail = p + 1;
if (p[1] != NUL)
while (vim_ispathsep(*tail))
++tail;
mb_ptr_adv(tail);
else if (p > start)
--p; /* strip preceding path separator */
movetail(p, tail);
@@ -3270,7 +3270,7 @@ simplify_filename(filename)
/* Skip to after ".." or "../" or "..///". */
tail = p + 2;
while (vim_ispathsep(*tail))
++tail;
mb_ptr_adv(tail);
if (components > 0) /* strip one preceding component */
{
@@ -3296,8 +3296,8 @@ simplify_filename(filename)
--p;
/* Skip back to after previous '/'. */
while (p > start && !vim_ispathsep(p[-1]))
--p;
while (p > start && !after_pathsep(start, p))
mb_ptr_back(start, p);
if (!do_strip)
{