Changeset 4052:a742f3c37f38
- 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:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r3887
|
r4052
|
|
| 1125 | 1125 | |
| 1126 | 1126 | 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) |
| 1128 | 1128 | return (-1); |
| | 1129 | if (!buf[0]) |
| | 1130 | { |
| | 1131 | if (op == M_LIMIT) |
| | 1132 | strfcpy (buf, "~A", sizeof(buf)); |
| | 1133 | else |
| | 1134 | return -1; |
| | 1135 | } |
| 1129 | 1136 | |
| 1130 | 1137 | mutt_message _("Compiling search pattern..."); |