From 0409391c7d08016de3f1ea8b1a74d5856669ffaa Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 17 Jul 2008 11:27:55 +0000 Subject: 25272: add zshaddhistory hook --- Src/builtin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Src/builtin.c') diff --git a/Src/builtin.c b/Src/builtin.c index af2c24fd6..c7ed283a9 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -1139,7 +1139,7 @@ cd_new_pwd(int func, LinkNode dir, int quiet) fflush(stdout); fflush(stderr); if (!quiet) - callhookfunc("chpwd", NULL, 1); + callhookfunc("chpwd", NULL, 1, NULL); dirstacksize = getiparam("DIRSTACKSIZE"); /* handle directory stack sizes out of range */ @@ -4578,7 +4578,7 @@ zexit(int val, int from_where) lastval = val; if (sigtrapped[SIGEXIT]) dotrap(SIGEXIT); - callhookfunc("zshexit", NULL, 1); + callhookfunc("zshexit", NULL, 1, NULL); runhookdef(EXITHOOK, NULL); if (opts[MONITOR] && interact && (SHTTY != -1)) { release_pgrp(); -- cgit v1.2.3