diff options
author | Michael Elkins <me@sigpipe.org> | 2007-04-07 16:22:49 -0700 |
---|---|---|
committer | Michael Elkins <me@sigpipe.org> | 2007-04-07 16:22:49 -0700 |
commit | fcf9122ce786eef2987ae7abde863437a4de173a (patch) | |
tree | 92c011c6895d698d1e2636243265b05071e9a233 /hook.c | |
parent | b195267b053e970dc350115f7921e8d28cac6b85 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |