Rocco Rutte:
authorpdmef <pdmef@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Thu, 10 Mar 2005 15:11:29 +0000 (15:11 +0000)
committerpdmef <pdmef@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Thu, 10 Mar 2005 15:11:29 +0000 (15:11 +0000)
bugfix for <change-folder> in connection with <buffy-cycle> (noted by Elimar Riesebieter)

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

curs_main.c

index 45952ef..9969bbc 100644 (file)
@@ -1277,7 +1277,11 @@ CHECK_IMAP_ACL(IMAP_ACL_DELETE);
         }
         else
 #endif
-        mutt_buffy (buf, sizeof (buf));
+        {
+          if (Context && Context->path)
+            strncpy (buf, Context->path, sizeof (buf));
+          mutt_buffy (buf, sizeof (buf));
+        }
 
         if ( op == OP_SIDEBAR_OPEN ) {
           if(!CurBuffy)