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

updated for version 7.1-159

This commit is contained in:
Bram Moolenaar
2007-11-20 17:04:29 +00:00
parent 85a3e5c7c6
commit f9ffd188e5
2 changed files with 4 additions and 1 deletions

View 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;
}
}