mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 06:28:35 +00:00
viml/profile: fix issue where profile is not reset on stop
This commit is contained in:
@@ -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();
|
||||||
|
Reference in New Issue
Block a user