Patch 8.2.2598

5 views
Skip to first unread message

Bram Moolenaar

unread,
Mar 13, 2021, 3:07:58 PM3/13/21
to vim...@googlegroups.com

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 -- Br...@Moolenaar.net -- 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 ///
Reply all
Reply to author
Forward
0 new messages