summaryrefslogtreecommitdiff
path: root/src/eval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-07-08 23:06:21 +0200
committerBram Moolenaar <Bram@vim.org>2016-07-08 23:06:21 +0200
commitee1deb4a00f39f133558321ec535354497f490c8 (patch)
treee44670b0f6617e525eb118a36e9c5f362b134ecd /src/eval.c
parent65549bdef5805ba5a18a3d2d3909998dd7d9ed46 (diff)
downloadvim-git-ee1deb4a00f39f133558321ec535354497f490c8.tar.gz
patch 7.4.2005v7.4.2005
Problem: After using evalcmd() message output is in the wrong position. (Christian Brabandt) Solution: Reset msg_col.
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c4
1 files changed, 4 insertions, 0 deletions
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;
}
}