summaryrefslogtreecommitdiff
path: root/src/ex_docmd.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-03-13 21:07:21 +0100
committerBram Moolenaar <Bram@vim.org>2021-03-13 21:07:21 +0100
commit6508880d6ca98486efb9ab947c651a2b73a6e795 (patch)
treebdaccc95096bea765b93a8cf66c9c5b2d215d16f /src/ex_docmd.c
parentcb4e80fab9b1ee67249bde4f784526f900cda70c (diff)
downloadvim-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.c4
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 == '/')