# HG changeset patch # User Bram Moolenaar # Date 1399976235 -7200 # Node ID 3c35ca9666e88a8024af6dab585b8e79ab295f83 # Parent f051f3af15d8368c1c983b56b78265ec8e28f559 updated for version 7.4.284 Problem: Setting 'langmap' in the modeline can cause trouble. E.g. mapping ":" breaks many commands. (Jens-Wolfhard Schicke-Uffmann) Solution: Disallow setting 'langmap' from the modeline. diff --git a/src/option.c b/src/option.c --- a/src/option.c +++ b/src/option.c @@ -1652,7 +1652,7 @@ static struct vimoption #endif #endif (char_u *)0L} SCRIPTID_INIT}, - {"langmap", "lmap", P_STRING|P_VI_DEF|P_COMMA|P_NODUP, + {"langmap", "lmap", P_STRING|P_VI_DEF|P_COMMA|P_NODUP|P_SECURE, #ifdef FEAT_LANGMAP (char_u *)&p_langmap, PV_NONE, {(char_u *)"", /* unmatched } */ diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -735,6 +735,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 284, +/**/ 283, /**/ 282,