0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

updated for version 7.0112

This commit is contained in:
Bram Moolenaar
2005-07-21 21:03:15 +00:00
parent 80fc04348a
commit a3ffd9c780
14 changed files with 181 additions and 36 deletions

View File

@@ -4341,6 +4341,7 @@ repl_cmdline(eap, src, srclen, repl, cmdlinep)
*/
i = (int)(src - *cmdlinep); /* length of part before match */
mch_memmove(new_cmdline, *cmdlinep, (size_t)i);
mch_memmove(new_cmdline + i, repl, (size_t)len);
i += len; /* remember the end of the string */
STRCPY(new_cmdline + i, src + srclen);