Mercurial > vim
changeset 2053:94f44da44d2e v7.2.339
updated for version 7.2.339
Problem: Part of --startuptime patch is missing.
Solution: Add check for time_fd.
author | Bram Moolenaar <bram@zimbu.org> |
---|---|
date | Tue, 19 Jan 2010 16:31:47 +0100 |
parents | 057029bf3470 |
children | 79b8d69a4588 |
files | src/ex_cmds2.c src/version.c |
diffstat | 2 files changed, 10 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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