Rocco Rutte:
authorpdmef <pdmef@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Sat, 29 Oct 2005 13:55:54 +0000 (13:55 +0000)
committerpdmef <pdmef@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Sat, 29 Oct 2005 13:55:54 +0000 (13:55 +0000)
- tweak <rebuild-cache> to highlight currently processed folder in sidebar

git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@568 e385b8ad-14ed-0310-8656-cc95a2468c6d

VERSION.svn
mx.c

index 97b925a..5fffd3d 100644 (file)
@@ -1 +1 @@
-567
+568
diff --git a/mx.c b/mx.c
index de22737..0d2ec9c 100644 (file)
--- 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
 }