Mercurial > vim
changeset 972:decce137e7be v7.0.098
updated for version 7.0-098
author | vimboss |
---|---|
date | Sun, 10 Sep 2006 19:07:28 +0000 |
parents | a9ffa7c7db77 |
children | d607b48414b7 |
files | src/ex_docmd.c src/ex_getln.c src/version.c |
diffstat | 3 files changed, 14 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -8422,6 +8422,15 @@ ex_redir(eap) else EMSG2(_(e_invarg2), eap->arg); } + + /* Make sure redirection is not off. Can happen for cmdline completion + * that indirectly invokes a command to catch its output. */ + if (redir_fd != NULL +#ifdef FEAT_EVAL + || redir_reg || redir_vname +#endif + ) + redir_off = FALSE; } /*
--- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -324,6 +324,9 @@ getcmdline(firstc, count, indent) */ for (;;) { + redir_off = TRUE; /* Don't redirect the typed command. + Repeated, because a ":redir" inside + completion may switch it on. */ #ifdef USE_ON_FLY_SCROLL dont_scroll = FALSE; /* allow scrolling here */ #endif