commit | f5a48010ef9e47319185f1aaac1bc6d45cd4d47a | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sat Aug 01 17:00:03 2020 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sat Aug 01 17:00:03 2020 +0200 |
tree | cf15e3bf7d2370d598b48a0ca392744f806d4521 | |
parent | 2ec208172c37b06a6177e32359214e5e02bfbed5 [diff] [blame] |
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)
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index ad1693b..081d9e4 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c
@@ -7276,6 +7276,9 @@ { 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 {