Changeset 5446:7783502a04c7
- Timestamp:
- 2008-07-02 09:23:30 (2 months ago)
- Author:
- Rocco Rutte <pdmef@…>
- Branch:
- HEAD
- Message:
-
Calculate menu->max after a possible resort in index
(maybe changing number of messages). Closes #3088.
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r5443
|
r5446
|
|
| 452 | 452 | tag = 0; /* clear the tag-prefix */ |
| 453 | 453 | |
| 454 | | menu->max = Context ? Context->vcount : 0; |
| 455 | | oldcount = Context ? Context->msgcount : 0; |
| 456 | | |
| 457 | 454 | /* check if we need to resort the index because just about |
| 458 | 455 | * any 'op' below could do mutt_enter_command(), either here or |
| … |
… |
|
| 461 | 458 | if (option (OPTNEEDRESORT) && Context && Context->msgcount) |
| 462 | 459 | resort_index (menu); |
| 463 | | |
| | 460 | |
| | 461 | menu->max = Context ? Context->vcount : 0; |
| | 462 | oldcount = Context ? Context->msgcount : 0; |
| | 463 | |
| 464 | 464 | if (option (OPTREDRAWTREE) && Context && Context->msgcount && (Sort & SORT_MASK) == SORT_THREADS) |
| 465 | 465 | { |