1
0
forked from aniani/vim

patch 8.2.1746: Vim9: cannot use "fina" for "finally"

Problem:    Vim9: Cannot use "fina" for "finally". (Naruhiko Nishino)
Solution:   Specifically check for "fina". (closes #7020)
This commit is contained in:
Bram Moolenaar
2020-09-26 17:20:53 +02:00
parent d47f50b331
commit 373863ed48
4 changed files with 12 additions and 5 deletions

View File

@@ -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;
}