summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ex_cmds2.c12
-rw-r--r--src/version.c2
2 files changed, 10 insertions, 4 deletions
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c
index 6adb071889..d52b203315 100644
--- a/src/ex_cmds2.c
+++ b/src/ex_cmds2.c
@@ -3036,7 +3036,8 @@ do_source(fname, check_other, is_vimrc)
#endif
#ifdef STARTUPTIME
- time_push(&tv_rel, &tv_start);
+ if (time_fd != NULL)
+ time_push(&tv_rel, &tv_start);
#endif
#ifdef FEAT_EVAL
@@ -3162,9 +3163,12 @@ do_source(fname, check_other, is_vimrc)
verbose_leave();
}
#ifdef STARTUPTIME
- vim_snprintf((char *)IObuff, IOSIZE, "sourcing %s", fname);
- time_msg((char *)IObuff, &tv_start);
- time_pop(&tv_rel);
+ if (time_fd != NULL)
+ {
+ vim_snprintf((char *)IObuff, IOSIZE, "sourcing %s", fname);
+ time_msg((char *)IObuff, &tv_start);
+ time_pop(&tv_rel);
+ }
#endif
#ifdef FEAT_EVAL
diff --git a/src/version.c b/src/version.c
index 1fa9dbeb60..5c7c50a5d3 100644
--- a/src/version.c
+++ b/src/version.c
@@ -682,6 +682,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 339,
+/**/
338,
/**/
337,