summaryrefslogtreecommitdiff
path: root/src/ex_cmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r--src/ex_cmds.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 01f14cd58..a2b60c988 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -3778,6 +3778,15 @@ ex_substitute(exarg_T *eap)
++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