1
0
forked from aniani/vim

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)
This commit is contained in:
Bram Moolenaar
2020-12-21 20:32:43 +01:00
parent f4e2099e39
commit 60f63100b9
3 changed files with 24 additions and 0 deletions

View File

@@ -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