diff src/misc1.c @ 22:cc049b00ee70

updated for version 7.0014
author vimboss
date Thu, 02 Sep 2004 19:12:26 +0000
parents 9be87deaeb52
children 8ff7fd162d3c
line wrap: on
line diff
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -2168,7 +2168,7 @@ del_bytes(count, fixpos)
 #ifdef FEAT_MBYTE
     /* If 'delcombine' is set and deleting (less than) one character, only
      * delete the last combining character. */
-    if (p_deco && enc_utf8 && (*mb_ptr2len_check)(oldp + col) <= count)
+    if (p_deco && enc_utf8 && utfc_ptr2len_check(oldp + col) >= count)
     {
 	int	c1, c2;
 	int	n;
@@ -3321,7 +3321,11 @@ expand_env_esc(src, dst, dstlen, esc)
     while (*src && dstlen > 0)
     {
 	copy_char = TRUE;
-	if (*src == '$'
+	if ((*src == '$'
+#ifdef VMS
+		    && at_start
+#endif
+	   )
 #if defined(MSDOS) || defined(MSWIN) || defined(OS2)
 		|| *src == '%'
 #endif