0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

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.
This commit is contained in:
Bram Moolenaar
2021-03-13 21:07:21 +01:00
parent cb4e80fab9
commit 6508880d6c
4 changed files with 9 additions and 0 deletions

View File

@@ -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 == '/')