mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
updated for version 7.2.339
Problem: Part of --startuptime patch is missing. Solution: Add check for time_fd.
This commit is contained in:
@@ -3036,7 +3036,8 @@ do_source(fname, check_other, is_vimrc)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef STARTUPTIME
|
#ifdef STARTUPTIME
|
||||||
time_push(&tv_rel, &tv_start);
|
if (time_fd != NULL)
|
||||||
|
time_push(&tv_rel, &tv_start);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef FEAT_EVAL
|
#ifdef FEAT_EVAL
|
||||||
@@ -3162,9 +3163,12 @@ do_source(fname, check_other, is_vimrc)
|
|||||||
verbose_leave();
|
verbose_leave();
|
||||||
}
|
}
|
||||||
#ifdef STARTUPTIME
|
#ifdef STARTUPTIME
|
||||||
vim_snprintf((char *)IObuff, IOSIZE, "sourcing %s", fname);
|
if (time_fd != NULL)
|
||||||
time_msg((char *)IObuff, &tv_start);
|
{
|
||||||
time_pop(&tv_rel);
|
vim_snprintf((char *)IObuff, IOSIZE, "sourcing %s", fname);
|
||||||
|
time_msg((char *)IObuff, &tv_start);
|
||||||
|
time_pop(&tv_rel);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef FEAT_EVAL
|
#ifdef FEAT_EVAL
|
||||||
|
@@ -681,6 +681,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 */
|
||||||
|
/**/
|
||||||
|
339,
|
||||||
/**/
|
/**/
|
||||||
338,
|
338,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user