updated for version 7.0015
diff --git a/src/gui_w48.c b/src/gui_w48.c
index 761c1af..7b8d8de 100644
--- a/src/gui_w48.c
+++ b/src/gui_w48.c
@@ -3376,6 +3376,16 @@
 		{
 		    if (pnew != NULL)
 			*pnew++ = *p;
+#ifdef FEAT_MBYTE
+		    /* Can't use mb_* functions, because 'encoding' is not
+		     * initialized yet here. */
+		    if (IsDBCSLeadByte(*p))
+		    {
+			++p;
+			if (pnew != NULL)
+			    *pnew++ = *p;
+		    }
+#endif
 		    ++p;
 		}
 	    }