Mercurial > vim
comparison src/vim9script.c @ 21584:d0c76ce48326 v8.2.1342
patch 8.2.1342: Vim9: accidentally using "t" gives a confusing error
Commit: https://github.com/vim/vim/commit/f5a48010ef9e47319185f1aaac1bc6d45cd4d47a
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 1 17:00:03 2020 +0200
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 https://github.com/vim/vim/issues/6399)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 01 Aug 2020 17:15:03 +0200 |
parents | e17d0b882194 |
children | f84625b961a8 |
comparison
equal
deleted
inserted
replaced
21583:84990b1adf55 | 21584:d0c76ce48326 |
---|---|
65 not_in_vim9(exarg_T *eap) | 65 not_in_vim9(exarg_T *eap) |
66 { | 66 { |
67 if (in_vim9script()) | 67 if (in_vim9script()) |
68 switch (eap->cmdidx) | 68 switch (eap->cmdidx) |
69 { | 69 { |
70 case CMD_insert: | |
71 case CMD_append: | 70 case CMD_append: |
72 case CMD_change: | 71 case CMD_change: |
72 case CMD_insert: | |
73 case CMD_t: | |
73 case CMD_xit: | 74 case CMD_xit: |
74 semsg(_("E1100: Missing :let: %s"), eap->cmd); | 75 semsg(_("E1100: Missing :let: %s"), eap->cmd); |
75 return FAIL; | 76 return FAIL; |
76 default: break; | 77 default: break; |
77 } | 78 } |