0
0
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:
Bram Moolenaar
2020-08-01 17:00:03 +02:00
parent 2ec208172c
commit f5a48010ef
6 changed files with 22 additions and 11 deletions

View File

@@ -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
{