Changeset 4052:a742f3c37f38

Show
Ignore:
Timestamp:
2005-07-25 22:58:29 (3 years ago)
Author:
TAKAHASHI Tamotsu <ttakah@…>
Branch:
HEAD
Message:

Interpret an empty limit as a request to cancel the current limit.
(Closes #1854)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pattern.c

    r3887 r4052  
    11251125 
    11261126  strfcpy (buf, NONULL (Context->pattern), sizeof (buf)); 
    1127   if (mutt_get_field (prompt, buf, sizeof (buf), M_PATTERN | M_CLEAR) != 0 || !buf[0]) 
     1127  if (mutt_get_field (prompt, buf, sizeof (buf), M_PATTERN | M_CLEAR) != 0) 
    11281128    return (-1); 
     1129  if (!buf[0]) 
     1130  { 
     1131    if (op == M_LIMIT) 
     1132      strfcpy (buf, "~A", sizeof(buf)); 
     1133    else 
     1134      return -1; 
     1135  } 
    11291136 
    11301137  mutt_message _("Compiling search pattern...");