mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.2805: Vim9: cannot use legacy syntax in Vim9 script
Problem: Vim9: cannot use legacy syntax in Vim9 script. Solution: Add the :legacy command.
This commit is contained in:
@@ -27,8 +27,9 @@ in_vim9script(void)
|
||||
{
|
||||
// "sc_version" is also set when compiling a ":def" function in legacy
|
||||
// script.
|
||||
return current_sctx.sc_version == SCRIPT_VERSION_VIM9
|
||||
|| (cmdmod.cmod_flags & CMOD_VIM9CMD);
|
||||
return (current_sctx.sc_version == SCRIPT_VERSION_VIM9
|
||||
|| (cmdmod.cmod_flags & CMOD_VIM9CMD))
|
||||
&& !(cmdmod.cmod_flags & CMOD_LEGACY);
|
||||
}
|
||||
|
||||
#if defined(FEAT_EVAL) || defined(PROTO)
|
||||
|
Reference in New Issue
Block a user