diff 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
line wrap: on
line diff
--- 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
     {