Mercurial > vim
diff src/ex_cmds.c @ 1444:215d6b2a1816 v7.1.159
updated for version 7.1-159
author | vimboss |
---|---|
date | Tue, 20 Nov 2007 17:04:29 +0000 |
parents | c7654c4db8fd |
children | 9be44c669f4c |
line wrap: on
line diff
--- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -4885,7 +4885,8 @@ do_sub(eap) ++line2; /* move the cursor to the new line, like Vi */ ++curwin->w_cursor.lnum; - STRCPY(new_start, p1 + 1); /* copy the rest */ + /* copy the rest */ + mch_memmove(new_start, p1 + 1, STRLEN(p1 + 1) + 1); p1 = new_start - 1; } }