summaryrefslogtreecommitdiffstats
path: root/hook.c
diff options
context:
space:
mode:
authorMichael Elkins <me@sigpipe.org>2007-04-07 16:22:49 -0700
committerMichael Elkins <me@sigpipe.org>2007-04-07 16:22:49 -0700
commitfcf9122ce786eef2987ae7abde863437a4de173a (patch)
tree92c011c6895d698d1e2636243265b05071e9a233 /hook.c
parentb195267b053e970dc350115f7921e8d28cac6b85 (diff)
Allow reply-hook to use ~h when replying from the index. Fixes regression introduced by fix for bug #2190. mutt_pattern_exec() now checks for ctx!=NULL so that Mutt will no longer segfault when replying to a message from the attachment menu.
Diffstat (limited to 'hook.c')
-rw-r--r--hook.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hook.c b/hook.c
index f0f98f7e..bee3c487 100644
--- a/hook.c
+++ b/hook.c
@@ -157,7 +157,7 @@ int mutt_parse_hook (BUFFER *buf, BUFFER *s, unsigned long data, BUFFER *err)
if (data & (M_SENDHOOK | M_SEND2HOOK | M_SAVEHOOK | M_FCCHOOK | M_MESSAGEHOOK | M_REPLYHOOK))
{
if ((pat = mutt_pattern_comp (pattern.data,
- (data & (M_SENDHOOK | M_SEND2HOOK | M_FCCHOOK | M_REPLYHOOK)) ? 0 : M_FULL_MSG,
+ (data & (M_SENDHOOK | M_SEND2HOOK | M_FCCHOOK)) ? 0 : M_FULL_MSG,
err)) == NULL)
goto error;
}