Hi Bram.

let job = job_start('cmd.exe /c echo hello world', 
{'out_io':'buffer','out_name':'output'})

This code change current buffer as buftype=nofile, bufhidden.

Should update the target buffer.

diff --git a/src/channel.c b/src/channel.c
index 2a71077..435bec0 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -1003,11 +1003,11 @@ find_buffer(char_u *name, int err)
        buf = buflist_new(name == NULL || *name == NUL ? NULL : name,
                                               NULL, (linenr_T)0, BLN_LISTED);
        buf_copy_options(buf, BCO_ENTER);
+       curbuf = buf;
 #ifdef FEAT_QUICKFIX
        set_option_value((char_u *)"bt", 0L, (char_u *)"nofile", OPT_LOCAL);
        set_option_value((char_u *)"bh", 0L, (char_u *)"hide", OPT_LOCAL);
 #endif
-       curbuf = buf;
        if (curbuf->b_ml.ml_mfp == NULL)
            ml_open(curbuf);
        ml_replace(1, (char_u *)(err ? "Reading from channel error..."

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui