X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=mx.c;h=cb65b9f65bb4c02a66cce1fa6582f9d2da7005b7;hb=c25bc063f35aaad6938c2022dae7a283346c2769;hp=de227372f3de5d827ac8b1c4cda3e998a32b5181;hpb=b7771af3af30cbc98226d5d3296af5684264baef;p=apps%2Fmadmutt.git diff --git a/mx.c b/mx.c index de22737..cb65b9f 100644 --- a/mx.c +++ b/mx.c @@ -291,7 +291,7 @@ int mx_lock_file (const char *path, int fd, int excl, int dot, int timeout) int mx_unlock_file (const char *path, int fd, int dot) { #ifdef USE_FCNTL - struct flock unlockit = { F_UNLCK, 0, 0, 0 }; + struct flock unlockit; memset (&unlockit, 0, sizeof (struct flock)); unlockit.l_type = F_UNLCK; @@ -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 }