diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-09-26 17:20:53 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-09-26 17:20:53 +0200 |
commit | 373863ed48c02b5df52574aa7d50aeecb1037d40 (patch) | |
tree | b8ac35b8b7d37267bfdfc2016375ba7c7e12602d /src/ex_docmd.c | |
parent | d47f50b3312af2b8baf37505b7a589daf3f7d942 (diff) |
patch 8.2.1746: Vim9: cannot use "fina" for "finally"v8.2.1746
Problem: Vim9: Cannot use "fina" for "finally". (Naruhiko Nishino)
Solution: Specifically check for "fina". (closes #7020)
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index a7542f35b4..bb504ffd6a 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -3420,6 +3420,10 @@ find_ex_command( eap->cmdidx = CMD_SIZE; } + // ":fina" means ":finally" for backwards compatibility. + if (eap->cmdidx == CMD_final && p - eap->cmd == 4) + eap->cmdidx = CMD_finally; + return p; } |