$NetBSD: patch-ac,v 1.4 2004/07/21 22:37:10 jlam Exp $

--- curs_main.c.orig	Wed Nov  5 04:41:31 2003
+++ curs_main.c
@@ -1048,6 +1048,11 @@ CHECK_IMAP_ACL(IMAP_ACL_DELETE);
           cp = _("Open mailbox");
 
 	buf[0] = '\0';
+	if (option (OPTCHANGEFOLDERNEXT) && Context && Context->path)
+	{
+	  strfcpy (buf, Context->path, sizeof (buf));
+	  mutt_pretty_mailbox (buf);
+	}
 	mutt_buffy (buf, sizeof (buf));
 
 	if (mutt_enter_fname (cp, buf, sizeof (buf), &menu->redraw, 1) == -1)
