Changeset 5099:c310dd3d6d73 for hook.c

Show
Ignore:
Timestamp:
2007-04-07 16:22:49 (21 months ago)
Author:
Michael Elkins <me@…>
Branch:
HEAD
Message:

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.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • hook.c

    r4961 r5099  
    158158  { 
    159159    if ((pat = mutt_pattern_comp (pattern.data, 
    160            (data & (M_SENDHOOK | M_SEND2HOOK | M_FCCHOOK | M_REPLYHOOK)) ? 0 : M_FULL_MSG, 
     160           (data & (M_SENDHOOK | M_SEND2HOOK | M_FCCHOOK)) ? 0 : M_FULL_MSG, 
    161161                                  err)) == NULL) 
    162162      goto error;