0
0
mirror of https://github.com/vim/vim.git synced 2025-09-28 04:24:06 -04:00

patch 7.4.1618

Problem:    Starting job with output to buffer changes options in the current
            buffer.
Solution:   Set "curbuf" earlier. (Yasuhiro Matsumoto)
This commit is contained in:
Bram Moolenaar
2016-03-20 17:28:35 +01:00
parent ba61ac0d61
commit a4f6ca717b
2 changed files with 3 additions and 1 deletions

View File

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

View File

@@ -748,6 +748,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1618,
/**/ /**/
1617, 1617,
/**/ /**/