# HG changeset patch # User Christian Brabandt # Date 1468012506 -7200 # Node ID 1227e52979f8fc7f634f43cd14bf686f4d0ee5c7 # Parent 58f3955061535a65cc9c01a9f7621978b8eb4d80 commit https://github.com/vim/vim/commit/ee1deb4a00f39f133558321ec535354497f490c8 Author: Bram Moolenaar 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. diff --git a/src/eval.c b/src/eval.c --- 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; } } diff --git a/src/version.c b/src/version.c --- 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,