diff src/structs.h @ 14226:706b57cd1b00 v8.1.0130

patch 8.1.0130: ":profdel func" does not work if func was called already commit https://github.com/vim/vim/commit/ad6480961080f80a455b2394f27b02935a2ded52 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jun 30 18:28:03 2018 +0200 patch 8.1.0130: ":profdel func" does not work if func was called already Problem: ":profdel func" does not work if func was called already. (Dominique Pelle) Solution: Reset uf_profiling and add a flag to indicate initialization was done.
author Christian Brabandt <cb@256bit.org>
date Sat, 30 Jun 2018 18:30:06 +0200
parents 2ad722003b36
children 71c17b688bc6
line wrap: on
line diff
--- a/src/structs.h
+++ b/src/structs.h
@@ -1345,6 +1345,7 @@ typedef struct
     garray_T	uf_lines;	/* function lines */
 #ifdef FEAT_PROFILE
     int		uf_profiling;	/* TRUE when func is being profiled */
+    int		uf_prof_initialized;
     /* profiling the function as a whole */
     int		uf_tm_count;	/* nr of calls */
     proftime_T	uf_tm_total;	/* time spent in function + children */