diff src/ex_docmd.c @ 9454:9da0cb39cbee v7.4.2008

commit https://github.com/vim/vim/commit/79815f1ec77406f2f21a618c053e5793b597db7a Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jul 9 17:07:29 2016 +0200 patch 7.4.2008 Problem: evalcmd() has a confusing name. Solution: Rename to execute(). Make silent optional. Support a list of commands.
author Christian Brabandt <cb@256bit.org>
date Sat, 09 Jul 2016 17:15:06 +0200
parents 73c0d07cc15e
children cdffa812f9d1
line wrap: on
line diff
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -9456,9 +9456,9 @@ ex_redir(exarg_T *eap)
     char_u	*arg = eap->arg;
 
 #ifdef FEAT_EVAL
-    if (redir_evalcmd)
-    {
-	EMSG(_("E930: Cannot use :redir inside evalcmd()"));
+    if (redir_execute)
+    {
+	EMSG(_("E930: Cannot use :redir inside execute()"));
 	return;
     }
 #endif