X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=curs_main.c;h=c9ec57f676f194e727c8230ccf5726247a5bd82e;hp=ef26f8160b4f1c1730bebd93f7b2e1c91b5a4bac;hb=d83b0f623c1ee8a3e337d3ee9992242e458eb4d0;hpb=63f828fbb1080f8de26ff5f0d04ec79c2b3daec4 diff --git a/curs_main.c b/curs_main.c index ef26f81..c9ec57f 100644 --- a/curs_main.c +++ b/curs_main.c @@ -1205,7 +1205,8 @@ int mutt_index_menu (void) { if (Context && Context->path) strncpy (buf, Context->path, sizeof (buf)); - buffy_next (buf, sizeof (buf)); + if (op != OP_SIDEBAR_OPEN) + buffy_next (buf, sizeof (buf)); } if (op == OP_SIDEBAR_OPEN) { @@ -1227,7 +1228,6 @@ int mutt_index_menu (void) else #endif mutt_expand_path (buf, sizeof (buf)); - sidebar_set_current (buf); if (mx_get_magic (buf) <= 0) { mutt_error (_("%s is not a mailbox."), buf); break; @@ -1272,6 +1272,7 @@ int mutt_index_menu (void) } else menu->current = 0; + sidebar_set_current (buf); #ifdef USE_NNTP /* buffy_check() must be done with mail-reader mode! */