4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Redirecting command output in a cmdline completion function
12 doesn't work. (Hari Krishna Dara)
13 Solution: Enable redirection when redirection is started.
14 Files: src/ex_docmd.c, src/ex_getln.c
17 *** ../vim-7.0.097/src/ex_docmd.c Sun Sep 10 15:50:32 2006
18 --- src/ex_docmd.c Sun Sep 10 20:59:46 2006
23 EMSG2(_(e_invarg2), eap->arg);
26 + /* Make sure redirection is not off. Can happen for cmdline completion
27 + * that indirectly invokes a command to catch its output. */
28 + if (redir_fd != NULL
30 + || redir_reg || redir_vname
37 *** ../vim-7.0.097/src/ex_getln.c Sat Sep 2 17:58:36 2006
38 --- src/ex_getln.c Sun Sep 10 21:04:57 2006
45 + redir_off = TRUE; /* Don't redirect the typed command.
46 + Repeated, because a ":redir" inside
47 + completion may switch it on. */
48 #ifdef USE_ON_FLY_SCROLL
49 dont_scroll = FALSE; /* allow scrolling here */
51 *** ../vim-7.0.097/src/version.c Sun Sep 10 15:50:32 2006
52 --- src/version.c Sun Sep 10 20:58:17 2006
56 { /* Add new patch number below this line */
62 GUEST: He's killed the best man!
63 SECOND GUEST: (holding a limp WOMAN) He's killed my auntie.
64 FATHER: No, please! This is supposed to be a happy occasion! Let's
65 not bicker and argue about who killed who ...
66 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
68 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
69 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
70 \\\ download, build and distribute -- http://www.A-A-P.org ///
71 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///