]> granicus.if.org Git - vim/commitdiff
updated for version 7.1-159 v7.1.159
authorBram Moolenaar <Bram@vim.org>
Tue, 20 Nov 2007 17:04:29 +0000 (17:04 +0000)
committerBram Moolenaar <Bram@vim.org>
Tue, 20 Nov 2007 17:04:29 +0000 (17:04 +0000)
src/ex_cmds.c
src/version.c

index ede122cc8a271a2cd38c19c891d9846f5111379b..3c2690a8493767c923051e5e21f2a460e10d229d 100644 (file)
@@ -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;
                        }
                    }
index 3661a8bebedb79d87cf61cc385bd392ad3ceef53..e044725a38e92d98d64b735ecdaeef8e6468635a 100644 (file)
@@ -666,6 +666,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    159,
 /**/
     158,
 /**/