updated for version 7.2a
diff --git a/src/edit.c b/src/edit.c
index fb17eec..e04c720 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -9300,7 +9300,7 @@
 	    i = cursor->col - fpos.col;
 	    if (i > 0)
 	    {
-		mch_memmove(ptr, ptr + i, STRLEN(ptr + i) + 1);
+		STRMOVE(ptr, ptr + i);
 		/* correct replace stack. */
 		if ((State & REPLACE_FLAG)
 #ifdef FEAT_VREPLACE