diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-07-12 17:07:05 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-07-12 17:07:05 +0200 |
commit | eb6880b6eb7c4631f6103575c0d1336b149348c1 (patch) | |
tree | 3ef9e464dfa615794f921e78f14fa6c14fa9a944 /src/ex_docmd.c | |
parent | 8af81d656a4c501611f6211b6379ea9dd650c545 (diff) | |
download | vim-git-eb6880b6eb7c4631f6103575c0d1336b149348c1.tar.gz |
patch 8.2.1190: Vim9: checking for Vim9 syntax is spread outv8.2.1190
Problem: Vim9: checking for Vim9 syntax is spread out.
Solution: Use in_vim9script().
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 5436373e5..64b143be5 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -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) { |