diff src/ex_docmd.c @ 24114:291c57cf4731 v8.2.2598

patch 8.2.2598: Vim9: :open does not need to be supported Commit: https://github.com/vim/vim/commit/6508880d6ca98486efb9ab947c651a2b73a6e795 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 13 21:07:21 2021 +0100 patch 8.2.2598: Vim9: :open does not need to be supported Problem: Vim9: :open does not need to be supported. Solution: Do not support :open in Vim9 script.
author Bram Moolenaar <Bram@vim.org>
date Sat, 13 Mar 2021 21:15:03 +0100
parents fc4c2beea99a
children f4061617c438
line wrap: on
line diff
--- 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 == '/')