diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-01-19 16:31:47 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-01-19 16:31:47 +0100 |
commit | c4e4198730dabb34313a6a0325d68e18551f113e (patch) | |
tree | 426f1dd41b591ee807dc515a5b18e44986c001e8 /src/ex_cmds2.c | |
parent | 6b29b0e809b14e41def8976190d24f0babddd95c (diff) | |
download | vim-git-c4e4198730dabb34313a6a0325d68e18551f113e.tar.gz |
updated for version 7.2.339v7.2.339
Problem: Part of --startuptime patch is missing.
Solution: Add check for time_fd.
Diffstat (limited to 'src/ex_cmds2.c')
-rw-r--r-- | src/ex_cmds2.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c index 6adb07188..d52b20331 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 |