diff options
Diffstat (limited to 'Src/signals.c')
-rw-r--r-- | Src/signals.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/signals.c b/Src/signals.c index d97e50dc2..7edf6f56e 100644 --- a/Src/signals.c +++ b/Src/signals.c @@ -894,6 +894,7 @@ dotrapargs(int sig, int *sigtr, void *sigfn) lexsave(); execsave(); breaks = 0; + runhookdef(BEFORETRAPHOOK, NULL); if (*sigtr & ZSIG_FUNC) { int osc = sfcontext; @@ -912,6 +913,7 @@ dotrapargs(int sig, int *sigtr, void *sigfn) zsfree(name); } else execode(sigfn, 1, 0); + runhookdef(AFTERTRAPHOOK, NULL); if (trapreturn > 0) trapret = trapreturn; |