From f9ffd188e54a65e13cf249b7a21419083406b6be Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 20 Nov 2007 17:04:29 +0000 Subject: [PATCH] updated for version 7.1-159 --- src/ex_cmds.c | 3 ++- src/version.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ex_cmds.c b/src/ex_cmds.c index ede122cc8a..3c2690a849 100644 --- 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; } } diff --git a/src/version.c b/src/version.c index 3661a8bebe..e044725a38 100644 --- a/src/version.c +++ b/src/version.c @@ -666,6 +666,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 159, /**/ 158, /**/