Commits

Anonymous committed 0a9d7cf

updated for version 7.3.374
Problem: ++encoding does not work properly.
Solution: Recognize ++encoding before ++enc. (Charles Cooper)

  • Participants
  • Parent commits 1332466
  • Tags v7-3-374

Comments (0)

Files changed (2)

File src/ex_docmd.c

 #ifdef FEAT_MBYTE
     else if (STRNCMP(arg, "enc", 3) == 0)
     {
-	arg += 3;
-	pp = &eap->force_enc;
-    }
-    else if (STRNCMP(arg, "encoding", 8) == 0)
-    {
-	arg += 8;
+	if (STRNCMP(arg, "encoding", 8) == 0)
+	    arg += 8;
+	else
+	    arg += 3;
 	pp = &eap->force_enc;
     }
     else if (STRNCMP(arg, "bad", 3) == 0)

File src/version.c

 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    374,
+/**/
     373,
 /**/
     372,