diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-08-01 17:00:03 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-08-01 17:00:03 +0200 |
commit | f5a48010ef9e47319185f1aaac1bc6d45cd4d47a (patch) | |
tree | cf15e3bf7d2370d598b48a0ca392744f806d4521 /src/ex_docmd.c | |
parent | 2ec208172c37b06a6177e32359214e5e02bfbed5 (diff) |
patch 8.2.1342: Vim9: accidentally using "t" gives a confusing errorv8.2.1342
Problem: Vim9: accidentally using "x" gives a confusing error.
Solution: Disallow using ":t" in Vim9 script. (issue #6399)
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index ad1693b516..081d9e454c 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -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 { |