{
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) {
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;
}
else
menu->current = 0;
+ sidebar_set_current (buf);
#ifdef USE_NNTP
/* buffy_check() must be done with mail-reader mode! */