From ee1deb4a00f39f133558321ec535354497f490c8 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 8 Jul 2016 23:06:21 +0200 Subject: [PATCH] patch 7.4.2005 Problem: After using evalcmd() message output is in the wrong position. (Christian Brabandt) Solution: Reset msg_col. --- src/eval.c | 4 ++++ src/version.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/eval.c b/src/eval.c index a51225d56..4764f49ab 100644 --- a/src/eval.c +++ b/src/eval.c @@ -11397,6 +11397,10 @@ f_evalcmd(typval_T *argvars, typval_T *rettv) 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 index 3429bf015..a326ecb80 100644 --- a/src/version.c +++ b/src/version.c @@ -758,6 +758,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2005, /**/ 2004, /**/ -- 2.50.1