X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=pager.c;h=9dd0f9ce7112b75e4adcb625b9dd63edd0a18550;hp=7e9a41b493cd52c89978610226d2da89c8373980;hb=ce2c6b74b93777c66708ef0cfb7cc14ff1bf6a94;hpb=07232d8229d07417da518d8c68a80f5386905d8d diff --git a/pager.c b/pager.c index 7e9a41b..9dd0f9c 100644 --- a/pager.c +++ b/pager.c @@ -2578,6 +2578,11 @@ CHECK_IMAP_ACL(IMAP_ACL_WRITE); case OP_TAG: CHECK_MODE(IsHeader (extra)); mutt_set_flag (Context, extra->hdr, M_TAG, !extra->hdr->tagged); + + Context->last_tag = extra->hdr->tagged ? extra->hdr : + ((Context->last_tag == extra->hdr && !extra->hdr->tagged) + ? NULL : Context->last_tag); + redraw = REDRAW_STATUS | REDRAW_INDEX; if (option (OPTRESOLVE)) {