Patch 7.4.1618
Problem:    Starting job with output to buffer changes options in the current
            buffer.
Solution:   Set "curbuf" earlier. (Yasuhiro Matsumoto)
Files:      src/channel.c


*** ../vim-7.4.1617/src/channel.c       2016-03-20 16:40:33.214484441 +0100
--- src/channel.c       2016-03-20 17:27:32.281503292 +0100
***************
*** 1003,1013 ****
        buf = buflist_new(name == NULL || *name == NUL ? NULL : name,
                                               NULL, (linenr_T)0, BLN_LISTED);
        buf_copy_options(buf, BCO_ENTER);
  #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..."
--- 1003,1013 ----
        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
        if (curbuf->b_ml.ml_mfp == NULL)
            ml_open(curbuf);
        ml_replace(1, (char_u *)(err ? "Reading from channel error..."
*** ../vim-7.4.1617/src/version.c       2016-03-20 16:40:33.218484399 +0100
--- src/version.c       2016-03-20 17:26:59.649839781 +0100
***************
*** 750,751 ****
--- 750,753 ----
  {   /* Add new patch number below this line */
+ /**/
+     1618,
  /**/

-- 
>From "know your smileys":
 ...---...   SOS

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
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