comparison src/ex_docmd.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 6c67c86a202a
children 7d721e95dc51
comparison
equal deleted inserted replaced
21583:84990b1adf55 21584:d0c76ce48326
7274 static void 7274 static void
7275 ex_copymove(exarg_T *eap) 7275 ex_copymove(exarg_T *eap)
7276 { 7276 {
7277 long n; 7277 long n;
7278 7278
7279 if (not_in_vim9(eap) == FAIL)
7280 return;
7281
7279 n = get_address(eap, &eap->arg, eap->addr_type, FALSE, FALSE, FALSE, 1); 7282 n = get_address(eap, &eap->arg, eap->addr_type, FALSE, FALSE, FALSE, 1);
7280 if (eap->arg == NULL) // error detected 7283 if (eap->arg == NULL) // error detected
7281 { 7284 {
7282 eap->nextcmd = NULL; 7285 eap->nextcmd = NULL;
7283 return; 7286 return;