forked from aniani/vim
patch 8.0.0788: MS-Windows: cannot build with terminal feature
Problem: MS-Windows: cannot build with terminal feature. Solution: Move set_ref_in_term(). (Ozaki Kiichi)
This commit is contained in:
@@ -1094,6 +1094,26 @@ term_get_status_text(term_T *term)
|
|||||||
return term->tl_status_text;
|
return term->tl_status_text;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Mark references in jobs of terminals.
|
||||||
|
*/
|
||||||
|
int
|
||||||
|
set_ref_in_term(int copyID)
|
||||||
|
{
|
||||||
|
int abort = FALSE;
|
||||||
|
term_T *term;
|
||||||
|
typval_T tv;
|
||||||
|
|
||||||
|
for (term = first_term; term != NULL; term = term->tl_next)
|
||||||
|
if (term->tl_job != NULL)
|
||||||
|
{
|
||||||
|
tv.v_type = VAR_JOB;
|
||||||
|
tv.vval.v_job = term->tl_job;
|
||||||
|
abort = abort || set_ref_in_item(&tv, copyID, NULL, NULL);
|
||||||
|
}
|
||||||
|
return abort;
|
||||||
|
}
|
||||||
|
|
||||||
# ifdef WIN3264
|
# ifdef WIN3264
|
||||||
|
|
||||||
#define WINPTY_SPAWN_FLAG_AUTO_SHUTDOWN 1ul
|
#define WINPTY_SPAWN_FLAG_AUTO_SHUTDOWN 1ul
|
||||||
@@ -1399,26 +1419,6 @@ term_report_winsize(term_T *term, int rows, int cols)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* Mark references in jobs of terminals.
|
|
||||||
*/
|
|
||||||
int
|
|
||||||
set_ref_in_term(int copyID)
|
|
||||||
{
|
|
||||||
int abort = FALSE;
|
|
||||||
term_T *term;
|
|
||||||
typval_T tv;
|
|
||||||
|
|
||||||
for (term = first_term; term != NULL; term = term->tl_next)
|
|
||||||
if (term->tl_job != NULL)
|
|
||||||
{
|
|
||||||
tv.v_type = VAR_JOB;
|
|
||||||
tv.vval.v_job = term->tl_job;
|
|
||||||
abort = abort || set_ref_in_item(&tv, copyID, NULL, NULL);
|
|
||||||
}
|
|
||||||
return abort;
|
|
||||||
}
|
|
||||||
|
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
#endif /* FEAT_TERMINAL */
|
#endif /* FEAT_TERMINAL */
|
||||||
|
@@ -769,6 +769,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 */
|
||||||
|
/**/
|
||||||
|
788,
|
||||||
/**/
|
/**/
|
||||||
787,
|
787,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user