mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -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:
@@ -1765,7 +1765,7 @@ do_one_cmd(
|
||||
ea.cmd = skipwhite(ea.cmd + 1);
|
||||
|
||||
#ifdef FEAT_EVAL
|
||||
if (current_sctx.sc_version == SCRIPT_VERSION_VIM9 && !starts_with_colon)
|
||||
if (in_vim9script() && !starts_with_colon)
|
||||
{
|
||||
if (ea.cmd > cmd)
|
||||
{
|
||||
|
Reference in New Issue
Block a user