<<< Date Index >>>     <<< Thread Index >>>

Re: Patch for mutt 1.5.8 that makes it remember menu position



On Tue, Mar 01, 2005 at 08:20:46PM +0100, Haakon Riiser wrote:

> I created a trivial patch to make mutt remember its last position
> in the mailbox menu (mutt -y) when returning from a mailbox.
> I don't think testing the menu title is a particularly elegant
> method for determining the context of menuLoop(), but I saw no
> better way first glance.  The patch appears to work though, so I'm
> posting it here for comments and criticism.

> +  if (menu->title && strncmp("Mailboxes", menu->title, 9) == 0 &&

This doesn't work with non-English locale.
And you have to know that _("Mailboxes [%d]") could be
translated to "Foo [%d] Bar"-style.

-- 
tamo