viml/profile: fix issue where profile is not reset on stop

This commit is contained in:
erw7 2020-05-09 11:17:59 +09:00
parent 861aade680
commit 949783fdfa

View File

@ -1038,7 +1038,7 @@ static void profile_reset(void)
if (!HASHITEM_EMPTY(hi)) { if (!HASHITEM_EMPTY(hi)) {
n--; n--;
ufunc_T *uf = HI2UF(hi); ufunc_T *uf = HI2UF(hi);
if (uf->uf_profiling) { if (uf->uf_prof_initialized) {
uf->uf_profiling = 0; uf->uf_profiling = 0;
uf->uf_tm_count = 0; uf->uf_tm_count = 0;
uf->uf_tm_total = profile_zero(); uf->uf_tm_total = profile_zero();