mirror of
https://github.com/vim/vim.git
synced 2025-10-01 04:54:07 -04:00
patch 8.2.1342: Vim9: accidentally using "t" gives a confusing error
Problem: Vim9: accidentally using "x" gives a confusing error. Solution: Disallow using ":t" in Vim9 script. (issue #6399)
This commit is contained in:
@@ -7276,6 +7276,9 @@ ex_copymove(exarg_T *eap)
|
||||
{
|
||||
long n;
|
||||
|
||||
if (not_in_vim9(eap) == FAIL)
|
||||
return;
|
||||
|
||||
n = get_address(eap, &eap->arg, eap->addr_type, FALSE, FALSE, FALSE, 1);
|
||||
if (eap->arg == NULL) // error detected
|
||||
{
|
||||
|
Reference in New Issue
Block a user