projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Andreas Krennmair:
[apps/madmutt.git]
/
curs_main.c
diff --git
a/curs_main.c
b/curs_main.c
index
3835af7
..
8686baf
100644
(file)
--- a/
curs_main.c
+++ b/
curs_main.c
@@
-385,7
+385,7
@@
static void update_index (MUTTMENU *menu, CONTEXT *ctx, int check,
if (menu->current < 0)
menu->current = ci_first_message ();
if (menu->current < 0)
menu->current = ci_first_message ();
-
+
}
static void resort_index (MUTTMENU *menu)
}
static void resort_index (MUTTMENU *menu)
@@
-1121,6
+1121,9
@@
CHECK_IMAP_ACL(IMAP_ACL_DELETE);
else
{
mutt_set_flag (Context, CURHDR, M_TAG, !CURHDR->tagged);
else
{
mutt_set_flag (Context, CURHDR, M_TAG, !CURHDR->tagged);
+ Context->last_tag = CURHDR->tagged ? CURHDR :
+ ((Context->last_tag == CURHDR && !CURHDR->tagged)
+ ? NULL : Context->last_tag);
menu->redraw = REDRAW_STATUS;
if (option (OPTRESOLVE) && menu->current < Context->vcount - 1)
{
menu->redraw = REDRAW_STATUS;
if (option (OPTRESOLVE) && menu->current < Context->vcount - 1)
{
@@
-1175,6
+1178,9
@@
CHECK_IMAP_ACL(IMAP_ACL_DELETE);
case OP_MAIN_SYNC_FOLDER:
case OP_MAIN_SYNC_FOLDER:
+ if (Context && !Context->msgcount)
+ break;
+
CHECK_MSGCOUNT;
CHECK_VISIBLE;
CHECK_READONLY;
CHECK_MSGCOUNT;
CHECK_VISIBLE;
CHECK_READONLY;
@@
-1296,6
+1302,12
@@
CHECK_IMAP_ACL(IMAP_ACL_DELETE);
{
int check;
{
int check;
+#ifdef USE_COMPRESSED
+ if (Context->compressinfo && Context->realpath)
+ mutt_str_replace (&LastFolder, Context->realpath);
+ else
+#endif
+
mutt_str_replace (&LastFolder, Context->path);
oldcount = Context ? Context->msgcount : 0;
mutt_str_replace (&LastFolder, Context->path);
oldcount = Context ? Context->msgcount : 0;
@@
-2139,7
+2151,9
@@
CHECK_IMAP_ACL(IMAP_ACL_INSERT);
break;
CHECK_MSGCOUNT;
CHECK_VISIBLE;
break;
CHECK_MSGCOUNT;
CHECK_VISIBLE;
- mutt_check_traditional_pgp (tag ? NULL : CURHDR, &menu->redraw);
+ if (tag || !(CURHDR->security & PGP_TRADITIONAL_CHECKED))
+ mutt_check_traditional_pgp (tag ? NULL : CURHDR, &menu->redraw);
+
if (menu->menu == MENU_PAGER)
{
op = OP_DISPLAY_MESSAGE;
if (menu->menu == MENU_PAGER)
{
op = OP_DISPLAY_MESSAGE;