commit | 77ab2801c793eafd4e683804eabcfc69a4371df8 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Wed Apr 22 12:44:48 2009 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Wed Apr 22 12:44:48 2009 +0000 |
tree | e7f382744f671ce851d7d09a5e233bfb46e1fe96 | |
parent | b9c1e96ce18e157aa3f05c76877ad5505d9f5ee1 [diff] [blame] |
updated for version 7.2-152
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 38acbfe..057e7d6 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c
@@ -2699,6 +2699,11 @@ /* Restore msg_scroll, it's set by file I/O commands, even when no * message is actually displayed. */ msg_scroll = save_msg_scroll; + + /* "silent reg" or "silent echo x" inside "redir" leaves msg_col + * somewhere in the line. Put it back in the first column. */ + if (redirecting()) + msg_col = 0; } #ifdef HAVE_SANDBOX