mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user