Skip to content

Commit

Permalink
patch 8.2.4519: Vim9: Can still use ":fini" and ":finis" for ":finish"
Browse files Browse the repository at this point in the history
Problem:    Vim9: Can still use ":fini" and ":finis" for ":finish".
Solution:   Require using ":finish".
  • Loading branch information
brammool committed Mar 6, 2022
1 parent 655b734 commit d523c7b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/ex_cmds.h
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ EXCMD(CMD_finally, "finally", ex_finally,
EX_TRLBAR|EX_SBOXOK|EX_CMDWIN|EX_LOCK_OK|EX_WHOLE,
ADDR_NONE),
EXCMD(CMD_finish, "finish", ex_finish,
EX_TRLBAR|EX_SBOXOK|EX_CMDWIN|EX_LOCK_OK,
EX_TRLBAR|EX_SBOXOK|EX_CMDWIN|EX_LOCK_OK|EX_WHOLE,
ADDR_NONE),
EXCMD(CMD_first, "first", ex_rewind,
EX_EXTRA|EX_BANG|EX_CMDARG|EX_ARGOPT|EX_TRLBAR,
Expand Down
2 changes: 2 additions & 0 deletions src/testdir/test_vim9_script.vim
Original file line number Diff line number Diff line change
Expand Up @@ -3400,6 +3400,8 @@ def Test_minimal_command_name_length()
'expor',
'fina',
'finall',
'fini',
'finis',
'imp',
'impo',
'impor',
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -750,6 +750,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
4519,
/**/
4518,
/**/
Expand Down

0 comments on commit d523c7b

Please sign in to comment.