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/vim9script.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/vim9script.c')
-rw-r--r-- | src/vim9script.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vim9script.c b/src/vim9script.c index 2e94b8e295..e7bb43303e 100644 --- a/src/vim9script.c +++ b/src/vim9script.c @@ -67,9 +67,10 @@ not_in_vim9(exarg_T *eap) if (in_vim9script()) switch (eap->cmdidx) { - case CMD_insert: case CMD_append: case CMD_change: + case CMD_insert: + case CMD_t: case CMD_xit: semsg(_("E1100: Missing :let: %s"), eap->cmd); return FAIL; |