summaryrefslogtreecommitdiff
path: root/alpine/mailindx.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2015-12-05 11:57:56 -0700
committerEduardo Chappa <chappa@washington.edu>2015-12-05 11:57:56 -0700
commit99f76eabc88ccea3206013d2e07ef548a5b67ad6 (patch)
tree4c5155a809b5d7d3a97a3c826c808da6d174d566 /alpine/mailindx.c
parentc77ba26762d2f2fc9a978420ecd90cfafd50269e (diff)
downloadalpine-99f76eabc88ccea3206013d2e07ef548a5b67ad6.tar.xz
* When the index is zoomed, broadening the search will redraw the
screen to account for the broadened search, but will not replaint the screen due to scrolling. Suggested by Holger Trapp.
Diffstat (limited to 'alpine/mailindx.c')
-rw-r--r--alpine/mailindx.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/alpine/mailindx.c b/alpine/mailindx.c
index 013a68aa..402f3570 100644
--- a/alpine/mailindx.c
+++ b/alpine/mailindx.c
@@ -322,6 +322,7 @@ index_lister(struct pine *state, CONTEXT_S *cntxt, char *folder, MAILSTREAM *str
cur_row, cur_col, km_popped, paint_status;
static int old_day = -1;
long i, j, k, old_max_msgno;
+ long lflagged, old_lflagged = 0L;
char *utf8str;
IndexType style, old_style = MsgIndex;
struct index_state id;
@@ -422,10 +423,12 @@ index_lister(struct pine *state, CONTEXT_S *cntxt, char *folder, MAILSTREAM *str
: (any_lflagged(msgmap, MN_HIDE))
? ZoomIndex
: (mn_total_cur(msgmap) > 1L) ? MultiMsgIndex : MsgIndex;
- if(style != old_style || style == ZoomIndex){
+ lflagged = any_lflagged(msgmap, MN_HIDE);
+ if(style != old_style || lflagged < old_lflagged){
state->mangled_header = 1;
state->mangled_footer = 1;
old_style = style;
+ old_lflagged = lflagged;
if(!(style == ThreadIndex || old_style == ThreadIndex))
id.msg_at_top = 0L;
}