X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=mx.c;h=0d2ec9ce8766248f53b2011c34083a817495734f;hp=de227372f3de5d827ac8b1c4cda3e998a32b5181;hb=13b3b36c8f696aea26b7c60444f2baa4858b004d;hpb=b7771af3af30cbc98226d5d3296af5684264baef diff --git a/mx.c b/mx.c index de22737..0d2ec9c 100644 --- a/mx.c +++ b/mx.c @@ -1468,6 +1468,8 @@ int mx_rebuild_cache (void) { #endif ) continue; + sidebar_set_current (b->path); + sidebar_draw (CurrentMenu); if ((ctx = mx_open_mailbox (b->path, M_READONLY | M_NOSORT | M_COUNT, NULL)) != NULL) @@ -1475,6 +1477,10 @@ int mx_rebuild_cache (void) { } mutt_clear_error (); + if (Context && Context->path) + sidebar_set_current (Context->path); + sidebar_draw (CurrentMenu); + return (0); #endif }