patch 8.2.2183: Vim9: value of 'edcompatible' and 'gdefault' are used
Problem: Vim9: value of 'edcompatible' and 'gdefault' are used.
Solution: Ignore these deprecated options in Vim9 script. (closes #7508)
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 01f14cd..a2b60c9 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -3778,6 +3778,15 @@
++cmd;
else
{
+#ifdef FEAT_EVAL
+ if (in_vim9script())
+ {
+ // ignore 'gdefault' and 'edcompatible'
+ subflags.do_all = FALSE;
+ subflags.do_ask = FALSE;
+ }
+ else
+#endif
if (!p_ed)
{
if (p_gd) // default is global on