Skip to content

Instantly share code, notes, and snippets.

@mattn
Created May 11, 2017 05:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattn/f2298123ccaf2620d01ef394928748bd to your computer and use it in GitHub Desktop.
Save mattn/f2298123ccaf2620d01ef394928748bd to your computer and use it in GitHub Desktop.
diff --git a/src/evalfunc.c b/src/evalfunc.c
index b16b26082..ca0aa0e85 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -2873,7 +2873,8 @@ f_execute(typval_T *argvars, typval_T *rettv)
/* "silent reg" or "silent echo x" leaves msg_col somewhere in the
* line. Put it back in the first column. */
- msg_col = 0;
+ if (emsg_off > 0)
+ msg_col = 0;
}
/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment