comparison src/ex_docmd.c @ 3208:0a9d7cf90f94 v7.3.374

updated for version 7.3.374 Problem: ++encoding does not work properly. Solution: Recognize ++encoding before ++enc. (Charles Cooper)
author Bram Moolenaar <bram@vim.org>
date Wed, 14 Dec 2011 14:49:45 +0100
parents af76a61a7f79
children f4574729f6df
comparison
equal deleted inserted replaced
3207:13324669e79b 3208:0a9d7cf90f94
4838 pp = &eap->force_ff; 4838 pp = &eap->force_ff;
4839 } 4839 }
4840 #ifdef FEAT_MBYTE 4840 #ifdef FEAT_MBYTE
4841 else if (STRNCMP(arg, "enc", 3) == 0) 4841 else if (STRNCMP(arg, "enc", 3) == 0)
4842 { 4842 {
4843 arg += 3; 4843 if (STRNCMP(arg, "encoding", 8) == 0)
4844 pp = &eap->force_enc; 4844 arg += 8;
4845 } 4845 else
4846 else if (STRNCMP(arg, "encoding", 8) == 0) 4846 arg += 3;
4847 {
4848 arg += 8;
4849 pp = &eap->force_enc; 4847 pp = &eap->force_enc;
4850 } 4848 }
4851 else if (STRNCMP(arg, "bad", 3) == 0) 4849 else if (STRNCMP(arg, "bad", 3) == 0)
4852 { 4850 {
4853 arg += 3; 4851 arg += 3;