Changeset 5446:7783502a04c7

Show
Ignore:
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:
1 modified

Legend:

Unmodified
Added
Removed
  • curs_main.c

    r5443 r5446  
    452452    tag = 0; /* clear the tag-prefix */ 
    453453 
    454     menu->max = Context ? Context->vcount : 0; 
    455     oldcount = Context ? Context->msgcount : 0; 
    456  
    457454    /* check if we need to resort the index because just about 
    458455     * any 'op' below could do mutt_enter_command(), either here or 
     
    461458    if (option (OPTNEEDRESORT) && Context && Context->msgcount) 
    462459      resort_index (menu); 
    463      
     460 
     461    menu->max = Context ? Context->vcount : 0; 
     462    oldcount = Context ? Context->msgcount : 0; 
     463 
    464464    if (option (OPTREDRAWTREE) && Context && Context->msgcount && (Sort & SORT_MASK) == SORT_THREADS) 
    465465    {