Patch 8.2.2598
Problem:    Vim9: :open does not need to be supported.
Solution:   Do not support :open in Vim9 script.
Files:      src/ex_docmd.c, src/vim9script.c, src/testdir/test_vim9_script.vim


*** ../vim-8.2.2597/src/ex_docmd.c      2021-03-03 21:22:37.178739531 +0100
--- src/ex_docmd.c      2021-03-13 21:01:41.483061941 +0100
***************
*** 6609,6614 ****
--- 6609,6618 ----
      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 == '/')
*** ../vim-8.2.2597/src/vim9script.c    2021-03-13 20:57:15.859515065 +0100
--- src/vim9script.c    2021-03-13 21:05:41.370635778 +0100
***************
*** 102,107 ****
--- 102,108 ----
            case CMD_append:
            case CMD_change:
            case CMD_insert:
+           case CMD_open:
            case CMD_t:
            case CMD_xit:
                
semsg(_(e_command_not_supported_in_vim9_script_missing_var_str), eap->cmd);
*** ../vim-8.2.2597/src/testdir/test_vim9_script.vim    2021-03-13 
20:57:15.859515065 +0100
--- src/testdir/test_vim9_script.vim    2021-03-13 21:06:16.538571352 +0100
***************
*** 1880,1885 ****
--- 1880,1887 ----
    CheckScriptFailure(['vim9script', 'c'], 'E1100:')
    CheckScriptFailure(['vim9script', 'i = 1'], 'E488:')
    CheckScriptFailure(['vim9script', 'i'], 'E1100:')
+   CheckScriptFailure(['vim9script', 'o = 1'], 'E1100:')
+   CheckScriptFailure(['vim9script', 'o'], 'E1100:')
    CheckScriptFailure(['vim9script', 't'], 'E1100:')
    CheckScriptFailure(['vim9script', 't = 1'], 'E1100:')
    CheckScriptFailure(['vim9script', 'x = 1'], 'E1100:')
*** ../vim-8.2.2597/src/version.c       2021-03-13 20:57:15.859515065 +0100
--- src/version.c       2021-03-13 21:01:59.063031635 +0100
***************
*** 752,753 ****
--- 752,755 ----
  {   /* Add new patch number below this line */
+ /**/
+     2598,
  /**/

-- 
ALL:   A witch!  A witch!
WITCH: It's a fair cop.
ALL:   Burn her!  Burn her!  Let's make her into a ladder.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202103132007.12DK7qub062774%40masaka.moolenaar.net.

Raspunde prin e-mail lui