diff src/option.c @ 5883:3c35ca9666e8 v7.4.284

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.
author Bram Moolenaar <bram@vim.org>
date Tue, 13 May 2014 12:17:15 +0200
parents a6b59ee633a3
children a42ba1e50992
line wrap: on
line diff
--- 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 } */