diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-03-13 21:07:21 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-03-13 21:07:21 +0100 |
commit | 6508880d6ca98486efb9ab947c651a2b73a6e795 (patch) | |
tree | bdaccc95096bea765b93a8cf66c9c5b2d215d16f /src/ex_docmd.c | |
parent | cb4e80fab9b1ee67249bde4f784526f900cda70c (diff) | |
download | vim-git-6508880d6ca98486efb9ab947c651a2b73a6e795.tar.gz |
patch 8.2.2598: Vim9: :open does not need to be supportedv8.2.2598
Problem: Vim9: :open does not need to be supported.
Solution: Do not support :open in Vim9 script.
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 40e70c32b..c7b57ba99 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -6609,6 +6609,10 @@ ex_open(exarg_T *eap) regmatch_T regmatch; char_u *p; +#ifdef FEAT_EVAL + if (not_in_vim9(eap) == FAIL) + return; +#endif curwin->w_cursor.lnum = eap->line2; beginline(BL_SOL | BL_FIX); if (*eap->arg == '/') |