mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.1190: Vim9: checking for Vim9 syntax is spread out
Problem: Vim9: checking for Vim9 syntax is spread out. Solution: Use in_vim9script().
This commit is contained in:
@@ -1876,7 +1876,7 @@ ex_scriptversion(exarg_T *eap UNUSED)
|
||||
emsg(_("E984: :scriptversion used outside of a sourced file"));
|
||||
return;
|
||||
}
|
||||
if (current_sctx.sc_version == SCRIPT_VERSION_VIM9)
|
||||
if (in_vim9script())
|
||||
{
|
||||
emsg(_("E1040: Cannot use :scriptversion after :vim9script"));
|
||||
return;
|
||||
|
Reference in New Issue
Block a user