]> granicus.if.org Git - vim/commitdiff
patch 7.4.1618 v7.4.1618
authorBram Moolenaar <Bram@vim.org>
Sun, 20 Mar 2016 16:28:35 +0000 (17:28 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 20 Mar 2016 16:28:35 +0000 (17:28 +0100)
Problem:    Starting job with output to buffer changes options in the current
            buffer.
Solution:   Set "curbuf" earlier. (Yasuhiro Matsumoto)

src/channel.c
src/version.c

index b3115adb71ccefa4fcbab642fa26cd552336691b..7fe68d5b4538b36912580e4c2f50abc6e99507c4 100644 (file)
@@ -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..."
index 491ded321775fdd863dc9ea6b4f41c4f52fbb0cf..03a30812c923f45e107bd4c2e1ee317818a8d7fe 100644 (file)
@@ -748,6 +748,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1618,
 /**/
     1617,
 /**/