aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerw7 <erw7.github@gmail.com>2020-05-09 11:17:59 +0900
committererw7 <erw7.github@gmail.com>2020-05-09 11:21:52 +0900
commit949783fdfaf937d8ac4a88c82e432c5613ae2634 (patch)
tree85c2562bda9a0ff36180300da3165ead8d2475e7
parent861aade680925a240e6f5ae2ba29513abc1eb8f6 (diff)
downloadrneovim-949783fdfaf937d8ac4a88c82e432c5613ae2634.tar.gz
rneovim-949783fdfaf937d8ac4a88c82e432c5613ae2634.tar.bz2
rneovim-949783fdfaf937d8ac4a88c82e432c5613ae2634.zip
viml/profile: fix issue where profile is not reset on stop
-rw-r--r--src/nvim/ex_cmds2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c
index a6bc32581f..9f4055af8d 100644
--- a/src/nvim/ex_cmds2.c
+++ b/src/nvim/ex_cmds2.c
@@ -1038,7 +1038,7 @@ static void profile_reset(void)
if (!HASHITEM_EMPTY(hi)) {
n--;
ufunc_T *uf = HI2UF(hi);
- if (uf->uf_profiling) {
+ if (uf->uf_prof_initialized) {
uf->uf_profiling = 0;
uf->uf_tm_count = 0;
uf->uf_tm_total = profile_zero();