summaryrefslogtreecommitdiff
path: root/src/ex_docmd.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-09-10 19:07:28 +0000
committerBram Moolenaar <Bram@vim.org>2006-09-10 19:07:28 +0000
commit29b2d2694de14fd48aa47965996645f83859f3c3 (patch)
tree73058a5c18fc56784a435a9b8b403bd4c6bf904b /src/ex_docmd.c
parent7875acc373ef93c5cee47bc1471522970696987f (diff)
downloadvim-29b2d2694de14fd48aa47965996645f83859f3c3.zip
updated for version 7.0-098
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r--src/ex_docmd.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 3378092e6..bb57a1068 100644
--- 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;
}
/*