diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-12-21 20:32:43 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-12-21 20:32:43 +0100 |
commit | 60f63100b9bc1d24b7b80c81f43cf2fc3da95987 (patch) | |
tree | 6401024697d26e2af4ca7af7132de0c44f7dee4b /src/ex_cmds.c | |
parent | f4e2099e39ed4d71aed0f9a9579455aed5ec6cc2 (diff) |
patch 8.2.2183: Vim9: value of 'edcompatible' and 'gdefault' are usedv8.2.2183
Problem: Vim9: value of 'edcompatible' and 'gdefault' are used.
Solution: Ignore these deprecated options in Vim9 script. (closes #7508)
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r-- | src/ex_cmds.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index 01f14cd581..a2b60c9886 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 |