changeset 9448:1227e52979f8 v7.4.2005

commit https://github.com/vim/vim/commit/ee1deb4a00f39f133558321ec535354497f490c8 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jul 8 23:06:21 2016 +0200 patch 7.4.2005 Problem: After using evalcmd() message output is in the wrong position. (Christian Brabandt) Solution: Reset msg_col.
author Christian Brabandt <cb@256bit.org>
date Fri, 08 Jul 2016 23:15:06 +0200
parents 58f395506153
children 76bbfac1cc81
files src/eval.c src/version.c
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/eval.c
+++ b/src/eval.c
@@ -11397,6 +11397,10 @@ f_evalcmd(typval_T *argvars, typval_T *r
 	redir_evalcmd = save_redir_evalcmd;
 	if (redir_evalcmd)
 	    redir_evalcmd_ga = save_ga;
+
+	/* "silent reg" or "silent echo x" leaves msg_col somewhere in the
+	 * line.  Put it back in the first column. */
+	msg_col = 0;
     }
 }
 
--- a/src/version.c
+++ b/src/version.c
@@ -759,6 +759,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2005,
+/**/
     2004,
 /**/
     2003,