1
0
forked from aniani/vim

updated for version 7.1-055

This commit is contained in:
Bram Moolenaar
2007-08-06 20:28:43 +00:00
parent a064ac8501
commit 452a81b413
8 changed files with 14 additions and 11 deletions

View File

@@ -4860,7 +4860,7 @@ chk_modeline(lnum, flags)
*/
for (e = s; *e != ':' && *e != NUL; ++e)
if (e[0] == '\\' && e[1] == ':')
STRCPY(e, e + 1);
mch_memmove(e, e + 1, STRLEN(e));
if (*e == NUL)
end = TRUE;

View File

@@ -1898,7 +1898,7 @@ backslash_halve(p)
{
for ( ; *p; ++p)
if (rem_backslash(p))
STRCPY(p, p + 1);
mch_memmove(p, p + 1, STRLEN(p));
}
/*

View File

@@ -13807,7 +13807,7 @@ f_resolve(argvars, rettv)
}
/* Shorten "remain". */
if (*q != NUL)
STRCPY(remain, q - 1);
mch_memmove(remain, q - 1, STRLEN(q - 1) + 1);
else
{
vim_free(remain);

View File

@@ -4306,10 +4306,11 @@ ExpandFromContext(xp, pat, num_file, file, options)
&& pat[i + 1] == '\\'
&& pat[i + 2] == '\\'
&& pat[i + 3] == ' ')
STRCPY(pat + i, pat + i + 3);
mch_memmove(pat + i, pat + i + 3,
STRLEN(pat + i + 3) + 1);
if (xp->xp_backslash == XP_BS_ONE
&& pat[i + 1] == ' ')
STRCPY(pat + i, pat + i + 1);
mch_memmove(pat + i, pat + i + 1, STRLEN(pat + i));
}
}
@@ -4552,7 +4553,7 @@ expand_shellcmd(filepat, num_file, file, flagsarg)
pat = vim_strsave(filepat);
for (i = 0; pat[i]; ++i)
if (pat[i] == '\\' && pat[i + 1] == ' ')
STRCPY(pat + i, pat + i + 1);
mch_memmove(pat + i, pat + i + 1, STRLEN(pat + i));
flags |= EW_FILE | EW_EXEC;

View File

@@ -8635,7 +8635,7 @@ dos_expandpath(
for (p = buf + wildoff; p < s; ++p)
if (rem_backslash(p))
{
STRCPY(p, p + 1);
mch_memmove(p, p + 1, STRLEN(p));
--e;
--s;
}
@@ -8936,7 +8936,7 @@ unix_expandpath(gap, path, wildoff, flags, didstar)
for (p = buf + wildoff; p < s; ++p)
if (rem_backslash(p))
{
STRCPY(p, p + 1);
mch_memmove(p, p + 1, STRLEN(p));
--e;
--s;
}

View File

@@ -6637,9 +6637,9 @@ regtilde(source, magic)
}
}
else if (magic)
STRCPY(p, p + 1); /* remove '~' */
mch_memmove(p, p + 1, STRLEN(p)); /* remove '~' */
else
STRCPY(p, p + 2); /* remove '\~' */
mch_memmove(p, p + 2, STRLEN(p) - 1); /* remove '\~' */
--p;
}
else

View File

@@ -191,7 +191,7 @@ nextent(tbuf, termcap, buflen) /* Read 1 entry from TERMCAP file */
lbuf[0] == '\t' &&
lbuf[1] == ':')
{
strcpy(lbuf, lbuf+2);
mch_memmove(lbuf, lbuf + 2, strlen(lbuf + 2) + 1);
llen -= 2;
}
if (lbuf[llen-2] == '\\') /* and continuations */

View File

@@ -666,6 +666,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
55,
/**/
54,
/**/